pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/gd



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sun Feb 25 14:34:22 UTC 2018

Modified Files:
        pkgsrc/graphics/gd: Makefile distinfo
Added Files:
        pkgsrc/graphics/gd/patches: patch-src_gd__xbm.c

Log Message:
graphics/gd: fix undefined behavior in ctype functions


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 pkgsrc/graphics/gd/Makefile
cvs rdiff -u -r1.45 -r1.46 pkgsrc/graphics/gd/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/gd/patches/patch-src_gd__xbm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/gd/Makefile
diff -u pkgsrc/graphics/gd/Makefile:1.116 pkgsrc/graphics/gd/Makefile:1.117
--- pkgsrc/graphics/gd/Makefile:1.116   Mon Sep  4 06:20:45 2017
+++ pkgsrc/graphics/gd/Makefile Sun Feb 25 14:34:22 2018
@@ -1,13 +1,14 @@
-# $NetBSD: Makefile,v 1.116 2017/09/04 06:20:45 adam Exp $
+# $NetBSD: Makefile,v 1.117 2018/02/25 14:34:22 rillig Exp $
 
 DISTNAME=      libgd-2.2.5
 PKGNAME=       ${DISTNAME:S/libgd/gd/}
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libgd/}
 EXTRACT_SUFX=  .tar.xz
 
 MAINTAINER=    adam%NetBSD.org@localhost
-HOMEPAGE=      http://libgd.bitbucket.org/
+HOMEPAGE=      https://libgd.github.io/
 COMMENT=       Graphics library for the dynamic creation of images
 
 GITHUB_PROJECT=        libgd

Index: pkgsrc/graphics/gd/distinfo
diff -u pkgsrc/graphics/gd/distinfo:1.45 pkgsrc/graphics/gd/distinfo:1.46
--- pkgsrc/graphics/gd/distinfo:1.45    Mon Sep  4 06:20:45 2017
+++ pkgsrc/graphics/gd/distinfo Sun Feb 25 14:34:22 2018
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.45 2017/09/04 06:20:45 adam Exp $
+$NetBSD: distinfo,v 1.46 2018/02/25 14:34:22 rillig Exp $
 
 SHA1 (libgd-2.2.5.tar.xz) = b777b005c401b6fa310ccf09eeb29f6c6e17ab2c
 RMD160 (libgd-2.2.5.tar.xz) = 1c20f719161da596dac6c5c5b92bde71ddc9aedb
 SHA512 (libgd-2.2.5.tar.xz) = e4598e17a277a75e02255402182cab139cb3f2cffcd68ec05cc10bbeaf6bc7aa39162c3445cd4a7efc1a26b72b9152bbedb187351e3ed099ea51767319997a6b
 Size (libgd-2.2.5.tar.xz) = 2594092 bytes
+SHA1 (patch-src_gd__xbm.c) = 948942243b97a8e96838447ea1325a28ac8c828a

Added files:

Index: pkgsrc/graphics/gd/patches/patch-src_gd__xbm.c
diff -u /dev/null pkgsrc/graphics/gd/patches/patch-src_gd__xbm.c:1.1
--- /dev/null   Sun Feb 25 14:34:22 2018
+++ pkgsrc/graphics/gd/patches/patch-src_gd__xbm.c      Sun Feb 25 14:34:22 2018
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_gd__xbm.c,v 1.1 2018/02/25 14:34:22 rillig Exp $
+
+Fix undefined behavior while using <ctype.h> functions.
+
+See https://github.com/libgd/libgd/pull/433
+
+--- src/gd_xbm.c.orig  2017-08-30 11:05:54.000000000 +0000
++++ src/gd_xbm.c
+@@ -239,7 +239,8 @@ BGD_DECLARE(void) gdImageXbmCtx(gdImageP
+       } else {
+               for (i=0; i<l; i++) {
+                       /* only in C-locale isalnum() would work */
+-                      if (!isupper(name[i]) && !islower(name[i]) && !isdigit(name[i])) {
++                      unsigned char ch = name[i];
++                      if (!isupper(ch) && !islower(ch) && !isdigit(ch)) {
+                               name[i] = '_';
+                       }
+               }



Home | Main Index | Thread Index | Old Index