diff options
author | recht <recht> | 2004-07-03 23:00:36 +0000 |
---|---|---|
committer | recht <recht> | 2004-07-03 23:00:36 +0000 |
commit | 6f8cce240e2c3d6311d4207a16d155676e82e784 (patch) | |
tree | 423e1e5d5a90c6f4825bfb81a0aea3524d190a9e /graphics/libpixman | |
parent | e25b3700d81f9598c2deb291057c4fadf84bd7e6 (diff) | |
download | pkgsrc-6f8cce240e2c3d6311d4207a16d155676e82e784.tar.gz |
Add a patch from the mono project:
avoid derefering NULL pointers
bump PKGREVISION to 1
Diffstat (limited to 'graphics/libpixman')
-rw-r--r-- | graphics/libpixman/Makefile | 3 | ||||
-rw-r--r-- | graphics/libpixman/distinfo | 3 | ||||
-rw-r--r-- | graphics/libpixman/patches/patch-aa | 36 |
3 files changed, 40 insertions, 2 deletions
diff --git a/graphics/libpixman/Makefile b/graphics/libpixman/Makefile index 33ffbaba605..bfa05e623d5 100644 --- a/graphics/libpixman/Makefile +++ b/graphics/libpixman/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2004/04/27 11:06:56 adam Exp $ +# $NetBSD: Makefile,v 1.6 2004/07/03 23:00:36 recht Exp $ # DISTNAME= libpixman-0.1.1 +PKGREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://cairographics.org/snapshots/ diff --git a/graphics/libpixman/distinfo b/graphics/libpixman/distinfo index 49551a46369..57f1c3b4917 100644 --- a/graphics/libpixman/distinfo +++ b/graphics/libpixman/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.2 2004/04/27 11:06:56 adam Exp $ +$NetBSD: distinfo,v 1.3 2004/07/03 23:00:36 recht Exp $ SHA1 (libpixman-0.1.1.tar.gz) = fcd5b1a30ad621f170392add673f880d3707ba82 Size (libpixman-0.1.1.tar.gz) = 361389 bytes +SHA1 (patch-aa) = 24f13081e3fe3f4e2128d509e98db67fbe7361ae diff --git a/graphics/libpixman/patches/patch-aa b/graphics/libpixman/patches/patch-aa new file mode 100644 index 00000000000..745797ad0de --- /dev/null +++ b/graphics/libpixman/patches/patch-aa @@ -0,0 +1,36 @@ +$NetBSD: patch-aa,v 1.1 2004/07/03 23:00:37 recht Exp $ + +--- src/icimage.c.orig 2004-04-15 23:10:42.000000000 +0200 ++++ src/icimage.c +@@ -248,10 +248,14 @@ pixman_image_destroyClip (pixman_image_t + case CT_NONE: + return; + case CT_PIXMAP: +- pixman_image_destroy (image->clientClip); ++ if (image->clientClip) { ++ pixman_image_destroy (image->clientClip); ++ } + break; + default: +- pixman_region_destroy (image->clientClip); ++ if (image->clientClip) { ++ pixman_region_destroy (image->clientClip); ++ } + break; + } + image->clientClip = NULL; +@@ -263,8 +267,12 @@ pixman_image_set_clip_region (pixman_ima + pixman_region16_t *region) + { + pixman_image_destroyClip (image); +- image->clientClip = region; +- image->clientClipType = CT_REGION; ++ if (region != NULL) { ++ // image->clientClip = region; ++ pixman_region_copy (image->clientClip, region); ++ image->clientClipType = CT_REGION; ++ } ++ + image->stateChanges |= CPClipMask; + return 0; + } |