avcodec/ilbcdec: Fix integer overflow in construct_vector()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Jan 2019 23:02:25 +0000 (00:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 28 Jan 2019 00:09:38 +0000 (01:09 +0100)
commitc95d0fb23917c35886f3b62daa05af20d2700a1e
treed439c2fe4d8374d9e4be96ca3434341129205c48
parent3016e1f8c53d2b035810684a18159bf5a8d47399
avcodec/ilbcdec: Fix integer overflow in construct_vector()

webrtc contains explicit code to ignore the undefined behavior (RTC_NO_SANITIZE / OverflowingAddS32S32ToS32())

Probably fixes: Integer overflow (unreproducable here)
Probably fixes: 12215/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-5767142427852800

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