avcodec/diracdec: Check bytes count in else branch in decode_lowdelay() too
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Jul 2018 19:42:16 +0000 (21:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Jul 2018 12:35:51 +0000 (14:35 +0200)
commitbed125b7108481574f36fdd6ee699b27354602e8
treef3d3be43d46078cb26f5939d1baf407b784246e7
parentf457c0ad7f73e31e99761f2ad3738cf3b3c24ca0
avcodec/diracdec: Check bytes count in else branch in decode_lowdelay() too

Fixes: signed integer overflow: 8 * 340018243 cannot be represented in type 'int'
Fixes: 9441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5194665207791616

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