avcodec/smacker: Fix integer overflow in signed int multiply in SMK_BLK_FILL
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Sep 2019 08:55:26 +0000 (10:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 15:53:39 +0000 (17:53 +0200)
commit033d2c4884eca3f4f80047bff93255b0cc4fa7a3
tree6901a7887d801852578ff146521957c5bddf0f62
parentb30c07cc2b9ee5bc52e1782eba9aa40e99085a7e
avcodec/smacker: Fix integer overflow in signed int multiply in SMK_BLK_FILL

Fixes: signed integer overflow: 238 * 16843009 cannot be represented in type 'int'
Fixes: 16958/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKER_fuzzer-5193905355620352

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