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, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit4a5ec6226b858b1ec88b37c4e602c3b179539c04
treec1b4ae233cd81e1b814d827cea1c6fdf3d96cfb4
parenta5a6d2dc75169918dec79e22aec146471e26db23
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