1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavcodec
Michael Niedermayer 86549d839f avcodec/brenderpix: Check input size before allocating image
An incomplete image is not supported prior to this and will
not produce any output. This commit moves the failure before
time consuming operations.

Fixes: Timeout (81sec -> 76ms)
Fixes: 15723/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BRENDER_PIX_fuzzer-5147265653538816

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 38b6c48c4300343f4703019a90a332773e64e11b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-15 12:25:45 +01:00
..
2019-11-14 23:30:37 +01:00
2019-11-14 23:30:37 +01:00
2018-06-18 01:16:03 +02:00
2018-06-18 01:16:04 +02:00
2019-11-14 23:30:37 +01:00
2019-11-14 23:30:37 +01:00
2019-11-14 23:30:37 +01:00
2019-11-14 23:30:37 +01:00
2019-03-24 10:38:51 +01:00
2019-11-14 23:30:37 +01:00
2018-06-18 01:16:03 +02:00
2019-11-14 23:30:37 +01:00
2019-03-24 10:38:51 +01:00
2019-11-14 23:30:37 +01:00
2019-03-24 10:38:51 +01:00
2019-03-24 10:38:51 +01:00