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>
Sun, 18 Nov 2018 01:20:44 +0000 (02:20 +0100)
commit7a7a6bf8e25054f599d274831f6993ac86267cf2
treeca536753615feaa24b5f0969ce74416678338767
parentec7cf0c74f75089617696f7f6e6787760997dcc0
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>
(cherry picked from commit bed125b7108481574f36fdd6ee699b27354602e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c