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:50:30 +0000 (13:50 +0100)
commitec1f59150d2437ea36baa0b6052ae1cf89b85ca8
treeca750be2e867db5c2ac96f2d9db3f4450116656f
parentb996cde19323756e647f3aa9c67c4ff2efe3a32d
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