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>
Wed, 24 May 2017 17:41:15 +0000 (19:41 +0200)
commit89325417e7b33f4b08171d9d609c48662d96b2d3
tree7f89001c550b5877ae56b3f6555ed67bdf044499
parentca616b0f72c65b0ef5f9e1e6125698b15f50a26e
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>
libavcodec/jpeg2000dec.c