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 5670eddf8cd3907f9c0a9e626b5698d27c81c81b)
2022-03-28 20:36:04 -03:00
..
2022-01-07 22:36:47 +02:00
2021-12-23 12:28:54 +01:00
2021-12-16 12:25:55 +01:00
2021-12-03 16:09:14 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:50 +01:00
2021-12-17 16:15:20 +01:00
2021-12-22 18:38:40 -06:00
2022-01-13 23:23:18 +01:00
2022-03-28 23:18:56 +02:00
2021-12-16 02:37:26 +01:00
2022-01-01 10:43:17 +08:00
2022-03-28 20:36:04 -03:00
2022-01-04 13:16:50 +01:00
2021-12-09 09:10:35 +08:00
2021-12-09 09:10:36 +08:00
2021-12-01 17:44:56 +01:00
2021-12-25 11:59:47 +01:00
2022-03-28 23:18:55 +02:00
2021-12-03 16:09:14 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2021-12-16 02:37:26 +01:00
2022-01-04 11:59:41 +01:00
2022-01-04 11:59:41 +01:00
2021-12-16 02:37:26 +01:00
2022-01-04 13:16:49 +01:00
2021-12-17 10:24:34 +01:00
2021-12-03 16:09:14 +01:00
2021-12-19 01:18:07 +01:00
2021-12-19 01:18:07 +01:00
2021-12-19 01:18:47 +01:00
2022-01-04 13:16:50 +01:00
2021-12-03 16:07:02 +01:00
2022-03-28 23:18:56 +02:00
2021-12-06 14:25:55 +01:00
2021-12-17 02:54:52 +01:00
2021-12-01 17:44:56 +01:00
2022-01-01 10:43:17 +08:00
2022-01-25 10:16:15 -03:00
2021-12-03 16:03:49 +01:00
2021-12-23 18:09:46 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2021-12-15 18:37:40 +01:00
2022-01-01 10:43:17 +08:00
2021-12-16 02:37:25 +01:00
2021-12-16 02:37:25 +01:00
2022-01-04 12:08:18 +01:00
2022-01-04 12:08:18 +01:00
2021-12-03 16:09:14 +01:00
2022-01-04 13:16:50 +01:00
2021-12-03 16:09:14 +01:00
2022-03-28 23:18:55 +02:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-02-01 13:04:16 -03:00
2021-12-08 00:36:32 +01:00
2021-12-06 13:52:00 +01:00
2022-03-28 23:18:56 +02:00
2021-12-28 14:19:38 +08:00
2021-12-28 14:19:38 +08:00
2022-01-04 13:16:50 +01:00
2022-01-06 08:31:12 +01:00
2021-12-30 18:19:53 +02:00
2022-01-04 13:16:50 +01:00
2022-03-28 23:18:56 +02:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2021-12-18 10:20:24 +01:00
2021-12-18 10:20:24 +01:00
2021-12-12 16:56:04 +01:00
2022-03-28 23:18:55 +02:00
2022-03-28 23:18:55 +02:00
2021-12-11 17:15:38 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2021-12-17 02:54:52 +01:00
2022-01-04 13:16:50 +01:00
2021-12-17 02:54:52 +01:00
2022-01-04 13:16:50 +01:00
2021-12-25 14:12:26 +01:00
2021-12-25 14:12:26 +01:00
2022-01-10 15:53:15 +01:00
2021-12-25 14:12:26 +01:00
2022-01-04 13:16:50 +01:00
2021-12-06 22:16:13 +01:00
2021-12-16 02:37:26 +01:00
2022-03-28 23:18:56 +02:00
2021-12-22 18:38:40 -06:00
2022-01-03 20:34:45 +01:00
2021-12-27 11:36:23 +08:00
2021-12-27 11:36:15 +08:00
2021-12-23 15:49:07 +08:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2022-01-04 13:16:49 +01:00
2021-12-22 09:27:30 +08:00
2021-12-03 16:09:14 +01:00
2022-03-28 23:18:56 +02:00
2021-12-16 03:06:46 +01:00
2022-03-28 23:18:56 +02:00
2021-12-30 22:20:14 +01:00
2021-12-30 22:20:14 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-04 13:16:50 +01:00
2022-01-09 11:47:26 -05:00
2021-12-28 18:12:47 -05:00
2021-12-22 09:27:30 +08:00
2022-01-04 13:16:50 +01:00
2021-12-27 11:19:27 +08:00
2021-12-17 02:54:45 +01:00
2021-12-23 12:28:54 +01:00
2021-12-23 12:28:54 +01:00
2022-01-04 13:40:03 +01:00
2022-01-05 09:34:22 +08:00
2021-12-22 18:43:34 -06:00
2021-12-01 17:44:56 +01:00
2021-12-23 12:28:54 +01:00
2021-12-23 12:28:54 +01:00
2021-12-23 12:28:54 +01:00
2021-12-23 12:28:54 +01:00
2021-12-23 15:22:06 +01:00
2021-12-16 02:37:26 +01:00