ffmpeg/libavformat
Michael Niedermayer 8b4273ba8e
avformat/westwood_vqa: Check chunk size
the type is also changed to int as it is interpreted as int in av_get_packet()

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 50993/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-6593408795279360
Fixes: 51896/clusterfuzz-testcase-minimized-ffmpeg_dem_WSVQA_fuzzer-4613908817903616

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5c0df3da0b7288a43a3b783117064cfcbc8037a5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-10-19 12:15:41 +02:00
..
2022-10-28 21:04:04 +02:00
2016-01-15 12:30:40 +01:00
2017-02-08 21:17:50 +01:00
2022-10-28 21:04:04 +02:00
2016-01-27 23:45:44 +01:00
2015-09-03 12:42:40 +02:00
2021-10-17 21:34:53 +02:00
2022-10-28 21:04:04 +02:00
2022-10-28 21:04:04 +02:00
2016-01-28 15:53:54 +01:00
2016-01-15 12:30:40 +01:00
2021-10-17 21:34:53 +02:00
2017-06-05 23:16:54 +02:00
2015-09-01 22:46:23 +02:00
2022-10-28 21:04:04 +02:00
2015-12-20 13:39:45 +01:00
2021-10-17 21:34:53 +02:00
2015-12-06 02:51:27 +01:00
2022-10-28 21:04:04 +02:00
2021-10-17 21:34:53 +02:00
2022-10-28 21:04:04 +02:00
2015-12-13 10:14:24 +01:00
2020-07-05 12:43:08 +02:00
2021-10-31 18:45:40 +01:00
2021-10-17 21:34:53 +02:00
2019-12-02 19:41:48 +01:00