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>
Wed, 6 Dec 2017 21:09:25 +0000 (22:09 +0100)
commit610dd74502a58e8bb0f1d8fcbc7015f86b78d70e
tree910e38f704cd7e2f4c7da047f11a3600c2764e9b
parent5e9a13a5a33bf7566591216e335f2529612100bb
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>
libavcodec/diracdsp.c