avcodec/flacdec: Fix overflow in multiplication in decode_subframe_fixed()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 26 Dec 2017 22:24:44 +0000 (23:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit6fab791daade82f85234312577782e202323db4d
treec51f5c840999dc13580de1717e9844e5f7d415ab
parent844a9b439b27fe205c445b8d4d8b43ffefd326d3
avcodec/flacdec: Fix overflow in multiplication in decode_subframe_fixed()

Fixes: signed integer overflow: 2 * 1629495328 cannot be represented in type 'int'
Fixes: 4716/clusterfuzz-testcase-minimized-5835915940331520

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 3d23f7a0969bf76ad6dcdc2c4a5cd3ae884745a8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/flacdec.c