angler-fishThe Vulnerability History Project

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>
    
commit 8f1457864be8fb9653643519dea1c6492f1dde57
+10 -5
expand_less