avcodec/dirac_dwt_template: Fix several integer overflows in horizontal_compose_daub97i()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Jul 2018 17:11:04 +0000 (19:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit86dfce06e3acd7e0259aecac2e0b849d31a70d97
treecc2be85e06ac9960e22d4c680e2a764eb2ffd4f4
parent057cfa4200e4d35c89f091d932906fc75945a5dd
avcodec/dirac_dwt_template: Fix several integer overflows in horizontal_compose_daub97i()

Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 8926/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-6047609228623872

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