avcodec/flashsv: Check size before updating it
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 14 Nov 2015 12:34:02 +0000 (13:34 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Nov 2015 15:05:41 +0000 (16:05 +0100)
commit7f0b58947d6bf392bde028ec19e260ed1f8a6ebf
tree46d9016a7e84238767b14f0a803f48db9a19b39a
parentf64ffbbdc0cc35fa3a478a8e6ca8b2342240bd02
avcodec/flashsv: Check size before updating it

Fixes out of array read
Fixes: 3c857d4d90365731524716e6d051e43a/signal_sigsegv_7f4f59bcc29e_1386_20abd2c8e655cb9c75b24368e65fe3b1.flv

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

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