avcodec/dirac_dwt: Fix several integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 Jan 2018 22:14:37 +0000 (23:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit35f47ac0d54b7591e8c390e47d209034b788d940
tree5e11fb105fabe74466fd8003f8674cac5971e808
parentc1a133b610def6b920e9a3dcd0bc9b7771e685a4
avcodec/dirac_dwt: Fix several integer overflows

Fixes: runtime error: signed integer overflow: -2146071175 + -268479557 cannot be represented in type 'int'
Fixes: 5237/clusterfuzz-testcase-minimized-4569895275593728

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 fe1e6c06d03432c3e9208f019533c1d701f485d0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dirac_dwt.h
libavcodec/dirac_dwt_template.c