avcodec/diracdsp: Fix integer overflow in PUT_SIGNED_RECT_CLAMPED()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 2 Dec 2017 20:53:22 +0000 (21:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:14 +0000 (23:19 +0100)
commit49efdb1e77ddc1ff34595336fac83b07512dbabd
treeab1ef5e76622241ac4d00034f9dd6deb1e6dd721
parent17b3485a6762722c26d6d2ba23b92ea3f87c805b
avcodec/diracdsp: Fix integer overflow in PUT_SIGNED_RECT_CLAMPED()

Fixes: runtime error: signed integer overflow: 2147483646 + 2048 cannot be represented in type 'int'
Fixes: 4479/clusterfuzz-testcase-minimized-6529894147162112

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 610dd74502a58e8bb0f1d8fcbc7015f86b78d70e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdsp.c