avcodec/jpeg2000dec: Check for duplicate SIZ marker
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Nov 2015 23:51:56 +0000 (00:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Nov 2015 02:51:39 +0000 (03:51 +0100)
commit53869b687c4ec13aa534a147fb3a3648fe72b191
tree52713c1ec88d6fb05f60d7ecfe8f2afb016b253f
parentd9bff0843f67cf271b8dd9a3b5fadd27660aeb94
avcodec/jpeg2000dec: Check for duplicate SIZ marker

Fixes: 0231a17345734228011c6f35a64e4594/asan_heap-oob_1d92a72_3218_1213809a9e3affec77e4c191fdfdc0a9.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 44a7f17d0b20e6f8d836b2957e3e357b639f19a2)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c