Add a patch to prevent a segfault under certain circumstances.

Submitted by:	Mark Martinec via freebsd-ports
Obtained from:	http://fuzzyocr.own-hero.net/wiki/Downloads
This commit is contained in:
Shaun Amott 2006-11-16 15:21:45 +00:00
parent 00936b889d
commit 8bf9cc019c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177389
4 changed files with 20 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= libungif
PORTVERSION= 4.1.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,9 @@
--- util/giftext.c.orig Mon Oct 10 08:08:51 2005
+++ util/giftext.c Mon Aug 28 17:01:18 2006
@@ -136,5 +136,5 @@
printf("\tColorResolution = %d, BitsPerPixel = %d, BackGround = %d.\n",
GifFile->SColorResolution,
- GifFile->SColorMap->BitsPerPixel,
+ GifFile->SColorMap?GifFile->SColorMap->BitsPerPixel:0,
GifFile->SBackGroundColor);
if (GifFile->SColorMap)

View file

@ -7,7 +7,7 @@
PORTNAME= libungif
PORTVERSION= 4.1.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}

View file

@ -0,0 +1,9 @@
--- util/giftext.c.orig Mon Oct 10 08:08:51 2005
+++ util/giftext.c Mon Aug 28 17:01:18 2006
@@ -136,5 +136,5 @@
printf("\tColorResolution = %d, BitsPerPixel = %d, BackGround = %d.\n",
GifFile->SColorResolution,
- GifFile->SColorMap->BitsPerPixel,
+ GifFile->SColorMap?GifFile->SColorMap->BitsPerPixel:0,
GifFile->SBackGroundColor);
if (GifFile->SColorMap)