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, 19 Nov 2015 02:51:39 +0000 (03:51 +0100)
commit1c73f9d84c8c0726fca4627381b77b99f09af99a
treee69bd54b7bd50b42dbadcfcc92ad70b6fc31c635
parentc00d40095bf2039b028fbe2a65e05ee33a12ca81
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