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>
Sun, 8 Jul 2018 17:45:47 +0000 (19:45 +0200)
commit60021049be014d4acc6ae3f77f4eeb1c73f27d50
tree78abbbae5c2d46bbed6e9f8cff286fbe87a1049b
parente520692e14af5ec6ca04cc680b0beb65a673894f
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