avcodec/shorten: Check non COMM chunk len before skip in decode_aiff_header()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Jun 2018 00:33:43 +0000 (02:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Jun 2018 14:58:08 +0000 (16:58 +0200)
commit424a81df107b63a166894a4aee3d27702ae3f459
tree7a293a528ac74708b36924617ecd60a94702e752
parent936f4a2c2e14ec753e8835f2e820b4cd9aec9a56
avcodec/shorten: Check non COMM chunk len before skip in decode_aiff_header()

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 8024/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5109204648984576

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