Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/graphics In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19086/stable/main/finkinfo/graphics
Added Files: giflib.patch Log Message: missed this in copying --- NEW FILE: giflib.patch --- #!/bin/sh /usr/share/dpatch/dpatch-run ## 01-cve.dpatch by Michael Fedrowitz <micha...@debian.org> ## ## DP: Fix CVE-2005-2974 and CVE-2005-3350 (Closes: #337972). @DPATCH@ diff -Naurp giflib-4.1.6.orig/lib/dgif_lib.c giflib-4.1.6/lib/dgif_lib.c --- giflib-4.1.6.orig/lib/dgif_lib.c 2007-11-10 22:54:44.000000000 +0000 +++ giflib-4.1.6/lib/dgif_lib.c 2008-03-07 13:45:02.000000000 +0000 @@ -249,6 +249,8 @@ DGifGetScreenDesc(GifFileType * GifFile) if (READ(GifFile, Buf, 3) != 3) { _GifError = D_GIF_ERR_READ_FAILED; + FreeMapObject(GifFile->SColorMap); + GifFile->SColorMap = NULL; return GIF_ERROR; } GifFile->SColorResolution = (((Buf[0] & 0x70) + 1) >> 4) + 1; @@ -346,6 +348,8 @@ DGifGetImageDesc(GifFileType * GifFile) return GIF_ERROR; if (READ(GifFile, Buf, 1) != 1) { _GifError = D_GIF_ERR_READ_FAILED; + FreeMapObject(GifFile->Image.ColorMap); + GifFile->Image.ColorMap = NULL; return GIF_ERROR; } BitsPerPixel = (Buf[0] & 0x07) + 1; @@ -994,6 +998,14 @@ DGifBufferedInput(GifFileType * GifFile, _GifError = D_GIF_ERR_IMAGE_DEFECT; return GIF_ERROR; } + /* There shouldn't be any empty data blocks here as the LZW spec + * says the LZW termination code should come first. Therefore we + * shouldn't be inside this routine at that point. + */ + if (Buf[0] == 0) { + _GifError = D_GIF_ERR_IMAGE_DEFECT; + return GIF_ERROR; + } if (READ(GifFile, &Buf[1], Buf[0]) != Buf[0]) { _GifError = D_GIF_ERR_READ_FAILED; return GIF_ERROR; ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs