avcodec/aacdec_fixed: use 64bit to avoid overflow in rounding in apply_dependent_coup...
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 May 2018 20:06:48 +0000 (22:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit4c2bb473d3f9a04bf3eafeb64b93c745ae44db6a
tree8976450b9bc4ca589fbcc7d6ebed7f6465a3472a
parent6bbef938839adc55e8e048bc9cc2e0fafe2064df
avcodec/aacdec_fixed: use 64bit to avoid overflow in rounding in apply_dependent_coupling_fixed()

Fixes: signed integer overflow: -2141499320 + -14469590 cannot be represented in type 'int'
Fixes: 7351/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-6351214791884800

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 90475db97e2e5931d295df6ab86519fa2e14d259)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_fixed.c