aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/refstruct.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-07-26 20:09:32 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-04-21 16:43:39 +0200
commit494061a49aa4468f2fecae9b25e5870e86273e99 (patch)
treeb48a34bf96b22c7195683d766dc80904b429345f /libavutil/refstruct.c
parent9e1162bdf1454d7ae3737429bcc6bd66e5da303a (diff)
downloadffmpeg-494061a49aa4468f2fecae9b25e5870e86273e99.tar.gz
avcodec/vp8: Maintain consistency of frame pointers
Right now it is possible for the pointer for the current frame to be set in the context even when it could not be properly set up; this does not influence the ordinary ref frames, but only VP8Context.prev_frame. And since this code has been ported to the ProgressFrame API in d48d7bc434f30dfbdf346f16715e4f2044b3e000, this leads to segfaults, because the ProgressFrame API is less forgiving than the ThreadFrame API (waiting on an uninitialized ProgressFrame segfaults, waiting on an uninitialized ThreadFrame is a no-op (the code behaves as if frame-threading is not in use)). Fix this by maintaining the consistency of the frame pointers in the context (by setting them later). Fixes: NULL pointer dereference Fixes: 68192/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP8_fuzzer-6180311026171904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/refstruct.c')
0 files changed, 0 insertions, 0 deletions