There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
https://sourceforge.net/p/giflib/bugs/159/
https://github.com/verf1sh/Poc/blob/master/giflib_poc
https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.png