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>
Sat, 14 Nov 2015 12:34:52 +0000 (13:34 +0100)
commit17705f5d4f57c15f9b9bb9cfcbbb4621fed2fc70
tree9e71d8047be4ea181fdba530e304d6fcd38a29bc
parente04126072e984f8db5db9da9303c89ae01f7d6bb
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>
libavcodec/flashsv.c