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:52 +0000 (20:28 +0200)
commit24a5cd720d579634ab7140f4cb7fa09fe4b780e4
treeab6daae1ab822059338ee58cf8f754d375c42b57
parent75f5fe165cedc63ea89514b3e9f6da67fd1038ec
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