avcodec/aacps: Fix multiple integer overflow in map_val_34_to_20()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Jul 2017 22:44:14 +0000 (00:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 Jul 2017 22:14:04 +0000 (00:14 +0200)
commit91442fdc1c6e5276095d04e0a59f690b11af4029
treee8262a50976bc7cd2588a638487dbb206eeb4bc6
parent56e2ec0e9fea1f7673e97def41c0d4793a9489d6
avcodec/aacps: Fix multiple integer overflow in map_val_34_to_20()

Fixes: avcodec/aacps.c:511:40: runtime error: signed integer overflow: 1509077651 + 758068176 cannot be represented in type 'int'
Fixes: 2678/clusterfuzz-testcase-minimized-4702787684270080

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 0764fe1d09833ae4dcf9e427df09378d0d6a3386)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacps.c