Fix NULL dereference in giftext.
From: William Yodlowsky <bsd@openbsd.rutgers.edu>
This commit is contained in:
parent
74af509bf2
commit
58038d2e18
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2006/01/08 00:29:38 steven Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2006/10/19 13:26:40 naddy Exp $
|
||||
|
||||
COMMENT= "tools and library routines for working with GIF images"
|
||||
|
||||
DISTNAME= libungif-4.1.4
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
SHARED_LIBS= gif 5.4 \
|
||||
ungif 5.4
|
||||
CATEGORIES= graphics
|
||||
|
12
graphics/libungif/patches/patch-util_giftext_c
Normal file
12
graphics/libungif/patches/patch-util_giftext_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-util_giftext_c,v 1.1 2006/10/19 13:26:40 naddy Exp $
|
||||
--- util/giftext.c.orig Thu Oct 19 15:11:42 2006
|
||||
+++ util/giftext.c Thu Oct 19 15:12:18 2006
|
||||
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
|
||||
GifFileName, GifFile->SWidth, GifFile->SHeight);
|
||||
printf("\tColorResolution = %d, BitsPerPixel = %d, BackGround = %d.\n",
|
||||
GifFile->SColorResolution,
|
||||
- GifFile->SColorMap->BitsPerPixel,
|
||||
+ GifFile->SColorMap?GifFile->SColorMap->BitsPerPixel:0,
|
||||
GifFile->SBackGroundColor);
|
||||
if (GifFile->SColorMap)
|
||||
printf("\tHas Global Color Map.\n\n");
|
Loading…
Reference in New Issue
Block a user