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>
Tue, 30 Jan 2018 21:08:32 +0000 (22:08 +0100)
commitfe1e6c06d03432c3e9208f019533c1d701f485d0
treee206da471ac711b097c1b8825f756efeddcbb6e6
parent2ff9f178519b68d4d1d606eb5451ad81da948efc
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>
libavcodec/dirac_dwt.h
libavcodec/dirac_dwt_template.c