Files
FFmpeg/libavcodec
James Almer fd4121a0aa avcodec/av1: only set the private context pix_fmt field if get_pixel_format() succeeds
Otherwise get_pixel_format() will not be called when parsing a subsequent Sequence
Header in non hwaccel enabled scenarios, allowing frame parsing when it shouldn't.

This prevents the scenario seqhdr -> frame_hdr/redundant_frame_hdr -> seqhdr ->
redundant_frame_hdr from having the latter redundant frame header parsed as if it
was a frame header by the decoder because the former was discarded.
Since CBS did not discard it, the latter redundant frame header is output with a
zeroed AV1RawFrameHeader struct, which can have undesired results, like division
by zero with fields normally guaranteed to be anything else.

Fixes: division by zero
Fixes: 43769/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_fuzzer-5392562205097984
Fixes: 43950/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AV1_fuzzer-5769210217758720

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 5670eddf8c)
2022-03-28 20:36:04 -03:00
..
2021-04-19 14:34:10 +02:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-07-08 20:10:01 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-10-03 11:42:15 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2022-03-28 23:18:56 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-10-08 20:37:36 +11:00
2021-10-08 20:37:36 +11:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-08-05 19:46:33 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-08 20:10:17 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-09-29 18:00:13 +08:00
2021-10-09 11:42:16 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-01-04 12:08:18 +01:00
2022-01-04 12:08:18 +01:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-12-03 16:09:14 +01:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-12-03 16:09:14 +01:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2022-03-28 23:18:56 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-10-02 18:49:40 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-05-05 14:17:03 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-08 20:10:17 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 15:02:30 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-09-19 22:36:23 +02:00
2021-04-27 10:43:15 -03:00
2021-10-10 17:44:41 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-12 18:29:11 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-08-26 09:20:56 +02:00
2021-09-12 22:23:35 +02:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00
2021-04-27 10:43:15 -03:00