avcodec/sunrast: Check that the input is large enough for the maximally compressed...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 21 Sep 2019 16:14:03 +0000 (18:14 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Oct 2019 14:24:58 +0000 (16:24 +0200)
commitbf0ba75c4a9231ed62afe60bed5bde2728971e30
tree86023be5a356d90a5148ead118bda79c85c9ccce
parent711ad71aea7847883662bf95e01640d9745b313b
avcodec/sunrast: Check that the input is large enough for the maximally compressed image

Fixes: Timeout (17sec -> 15ms)
Fixes: 17224/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SUNRAST_fuzzer-5663218491457536
Fixes: 17224/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SUNRAST_fuzzer-5735590015795200

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/sunrast.c