diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-26 14:16:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-15 12:25:45 +0100 |
commit | 86549d839f8e5c1203639fcef41c3effefb1e9fd (patch) | |
tree | 5af5a035b71aabbffe0b3581b8862731c0abdc36 /libavutil/integer.c | |
parent | c88d2c4e2f7632f5695d0d24899e5aa9db842eea (diff) | |
download | ffmpeg-86549d839f8e5c1203639fcef41c3effefb1e9fd.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 'libavutil/integer.c')
0 files changed, 0 insertions, 0 deletions