avcodec/dirac_dwt: Fix integer overflow in COMPOSE_FIDELITYi*
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 25 Nov 2017 02:15:16 +0000 (03:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit2214afdf408c7cfb9aa1861e2efb5909fdd1bcfb
treef779a4236f03268d512c519b1719c58d01d70aac
parentabff307736fba32305e3b0ac669d62020013a174
avcodec/dirac_dwt: Fix integer overflow in COMPOSE_FIDELITYi*

Fixes: runtime error: signed integer overflow: -2143827186 - 7404944 cannot be represented in type 'int'
Fixes: 4354/clusterfuzz-testcase-minimized-4671122764201984

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