1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00
Files
ffmpeg/libavcodec
Andreas Rheinhardt 42c0eb74a7 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 d48d7bc434,
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>
(cherry picked from commit 494061a49a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-19 15:58:40 +02:00
..
2025-12-07 15:54:59 +00:00
…
…
…
2025-12-07 15:54:59 +00:00
…
…
…
…
…
…
…
…
2024-06-08 00:22:40 +02:00
2024-06-08 00:22:40 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-08-14 18:21:01 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-04 15:57:08 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-09-17 21:12:31 +02:00
…
…
…
…
…
…
…
…
…
…
2025-12-07 15:54:59 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-09-06 13:59:28 +02:00
…
2026-05-04 15:57:33 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-07 15:54:59 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-09-24 15:37:17 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-07 15:54:59 +00:00
2025-09-08 02:13:25 +02:00
2025-12-07 15:54:59 +00:00
…
2025-09-08 02:13:19 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-19 12:45:53 +01:00
2025-09-08 02:13:28 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-06-11 17:29:47 +02:00
2025-12-07 15:54:59 +00:00
…
…
…
…
…
…
…
…
…
2025-01-23 01:20:11 +01:00
…
…
…
2024-07-23 23:21:17 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-08 02:13:17 +02:00
2025-09-08 02:13:18 +02:00
…
2025-12-07 15:54:59 +00:00
2024-09-24 15:37:19 +02:00
…
…
…
…
…
…
…
2025-09-08 02:13:11 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-04 15:57:18 +02:00
…
…
…
…
…
…
…
…
…
…
…
2024-05-31 13:36:02 -03:00
…
…
…
…
…
…
…
…
…
2024-06-14 21:28:10 +03:00
2024-07-12 22:42:40 +02:00
…
…
2026-06-18 20:31:03 +02:00
…
…
…
…
…
2024-07-12 22:42:42 +02:00
…
…
…
…
…
2025-09-08 02:13:22 +02:00
…
…
…
…
…
…
…
…
…
…
2025-12-07 15:54:59 +00:00
…
…
…
…
…
…
…
…
…
…
…
2026-05-04 15:57:28 +02:00
…
…
…
…
…
2025-11-19 12:45:55 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-06-08 00:22:35 +02:00
…
…
…
…
…
…
…
…
…
…
…
2024-08-09 13:40:26 +08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-08 02:13:32 +02:00
…
…
…
…
…
…
…
…
2025-09-08 02:13:27 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-07 15:54:59 +00:00
…
…
2025-06-11 17:29:49 +02:00
…
…
…
…
2024-06-03 14:13:34 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-09-24 15:37:19 +02:00
…
…
…
2024-06-12 12:07:49 +02:00
2024-06-20 18:58:38 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-04 15:57:14 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-03 18:28:44 +01:00
…
…
…
…
…
…
…
…
…
…
2024-09-24 15:37:20 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-04 15:57:21 +02:00
…
…
…
…
…
…
…