avcodec/jpeg2000dec: Check tile offsets
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 May 2017 17:40:42 +0000 (19:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit75d32ff24d3076e72d9cf86dd281586ffd7a84d1
tree153108f9dfa35dfa18c2fb6b5b6be26989005224
parent87c13e4e88ec69e3b1d03ecbe055149913fa900b
avcodec/jpeg2000dec: Check tile offsets

Fixes: runtime error: signed integer overflow: 4096 - -2147483648 cannot be represented in type 'int'

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 89325417e7b33f4b08171d9d609c48662d96b2d3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c