avcodec/dirac_dwt_template: Fix Integer overflow in horizontal_compose_dd137i()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Feb 2018 20:47:09 +0000 (21:47 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit93a16aebf2ac0b29956bd831417e4dbc2477dacf
tree432f0aa265c214f10e91b0dc6d11266563bc34e5
parent37cd7f3375302b2c8e35946a53db13a8bd123b8b
avcodec/dirac_dwt_template: Fix Integer overflow in horizontal_compose_dd137i()

Fixes: 5894/clusterfuzz-testcase-minimized-5315325420634112
Fixes: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'

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