aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-12-06 04:30:48 +0800
committerdougb <dougb@FreeBSD.org>2010-12-06 04:30:48 +0800
commite2c43fa48080d83426c213e7033f37d9c8076edd (patch)
tree6ed56581eeffcf8658680c56c0774c9af834a17f /x11
parent7e4dca0a07fae284830001809694674fc4301d12 (diff)
downloadfreebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.tar.gz
freebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.tar.zst
freebsd-ports-gnome-e2c43fa48080d83426c213e7033f37d9c8076edd.zip
Patch a memory exhaustion error in hacks/glx/tube.c. Patch confirmed
with xscreensaver author. PR: ports/151788 Submitted by: John Marshall <john.marshall@riverwillow.com.au>
Diffstat (limited to 'x11')
-rw-r--r--x11/xscreensaver/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/x11/xscreensaver/Makefile b/x11/xscreensaver/Makefile
index 6f4c70d71932..831e6abc4d96 100644
--- a/x11/xscreensaver/Makefile
+++ b/x11/xscreensaver/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xscreensaver
PORTVERSION= 5.12
+PORTREVISION= 1
CATEGORIES?= x11
MASTER_SITES= http://www.jwz.org/xscreensaver/ \
http://dougbarton.us/Downloads/
@@ -140,6 +141,9 @@ post-patch:
-e 's#malloc.h#stdlib.h#g' \
-e 's#/usr/X11R6#${LOCALBASE}#g' \
${WRKSRC}/configure.Patched > ${WRKSRC}/configure
+ @ ${CP} ${WRKSRC}/hacks/glx/tube.c ${WRKSRC}/hacks/glx/tube.c.Patched
+ @ ${SED} -e '183s#.*# free(array);#' \
+ ${WRKSRC}/hacks/glx/tube.c.Patched > ${WRKSRC}/hacks/glx/tube.c
.if defined(WITH_PAM)
.for f in driver/passwd-pam.c driver/xscreensaver.man
@ ${CP} ${WRKSRC}/${f} ${WRKSRC}/${f}.presed