avcodec/jpeg2000dec: Check SIZ dimensions to be within the supported range
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Nov 2015 20:12:50 +0000 (21:12 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Nov 2015 00:35:46 +0000 (01:35 +0100)
commitc3a44a2a55635ac64f909f2a9861ead5cb1a4df4
tree8274c529647f8fbc64d987ca71e39a1c1a1b326f
parentd1d48d4319ab1fc8140ee5bb391c27f7deeec4aa
avcodec/jpeg2000dec: Check SIZ dimensions to be within the supported range

Fixes potential integer overflows
Fixes: 03e0abe721b1174856d41a1eb5d6a896/signal_sigabrt_7ffff6ae7cc9_3813_e71bf3541abed3ccba031cd5ba0269a4.avi

This fix is choosen to be simple to backport, better solution
for master is planed

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6ef819c40bcc2175edba7ce9e20c3036c01b36b9)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/jpeg2000dec.c