avcodec/gifdec: factorize interleave end handling out
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 18:15:52 +0000 (20:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 18:28:35 +0000 (20:28 +0200)
commit6fb9bfb1a356aa4f711e7c45bbf79eaa18e4d522
tree57cc731a4297f789eb7dad00b3d07f573e0e316b
parent693faadd30c569d772cae2c6702895745348c5bd
avcodec/gifdec: factorize interleave end handling out

also change it to a loop
Fixes out of array access
Fixes: asan_heap-oob_ca5410_8_asan_heap-oob_ca5410_97_ID_LSD_Size_Less_Then_Data_Inter_3.gif

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8f1457864be8fb9653643519dea1c6492f1dde57)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/gifdec.c