diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-26 14:16:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-01 12:11:55 +0200 |
commit | 1b8026a23b5fc4cd82ba776267ec25b7130bf4fc (patch) | |
tree | eb8ba10d0c24d8ddd5b81f15db4df13739ed742c /libavdevice/version.h | |
parent | debbbb5ba67be364db327dddb5b3cf559f1a07bd (diff) | |
download | ffmpeg-1b8026a23b5fc4cd82ba776267ec25b7130bf4fc.tar.gz |
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>
Diffstat (limited to 'libavdevice/version.h')
0 files changed, 0 insertions, 0 deletions