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>
Mon, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit8da3d6916316588ad7c1f6d66e4133b51af9ea94
treee4b934dbe0eabc7aa883811d7cdc60862a1a6f76
parentbb6d47cf35836640309cf933a3d6a4bf1eec3ced
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>
(cherry picked from commit 424a81df107b63a166894a4aee3d27702ae3f459)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c