oss-sec mailing list archives

a bug in gif2rgb.c in giflib-5.1.2


From: xiaoqixue_1 <xiaoqixue_1 () 163 com>
Date: Tue, 26 Jan 2016 22:31:42 +0800 (CST)





We find a memory allocation whose size could be zero in gif2rgb.c. 
and It will result to several memory out of bound read and write. the bug in gif2rgb.c:386 :

386 if ((ScreenBuffer = (GifRowType *) 
387 malloc(GifFile->SHeight * sizeof(GifRowType))) == NULL) 
388 GIF_EXIT("Failed to allocate memory required, aborted.");


Please see "http://sourceforge.net/p/giflib/bugs/82/" for more details.




the bug was found by Qixue Xiao at Tsinghua University.

Current thread: