aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-03-28 07:54:40 +0800
committermarcus <marcus@FreeBSD.org>2005-03-28 07:54:40 +0800
commitb0680caaecde25c8fe2fd5ccdeed2edaadf30f3e (patch)
treea6153f6e968b2572e04c761adcc2233d3a0f1322 /x11-fonts
parentc5848d08ee65207e43ac316258242a16236236e7 (diff)
downloadfreebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.tar.gz
freebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.tar.zst
freebsd-ports-gnome-b0680caaecde25c8fe2fd5ccdeed2edaadf30f3e.zip
Fix a crash that can occur when using TrueType fonts. This should have
gone in with X.Org 6.8.2, but since we're using the external libXft library, it was missed. Reported by: adamw Obtained from: Freedesktop.org CVS Approved by: portmgr (implicit)
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/libXft/Makefile1
-rw-r--r--x11-fonts/libXft/files/patch-xftfreetype.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/x11-fonts/libXft/Makefile b/x11-fonts/libXft/Makefile
index cf75a4d4dd9d..d20a0946116b 100644
--- a/x11-fonts/libXft/Makefile
+++ b/x11-fonts/libXft/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libXft
PORTVERSION= 2.1.6
+PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= http://freedesktop.org/~ajax/xlibs-release/
diff --git a/x11-fonts/libXft/files/patch-xftfreetype.c b/x11-fonts/libXft/files/patch-xftfreetype.c
new file mode 100644
index 000000000000..2868f3d52a1f
--- /dev/null
+++ b/x11-fonts/libXft/files/patch-xftfreetype.c
@@ -0,0 +1,12 @@
+--- xftfreetype.c.orig Sun Mar 27 18:51:12 2005
++++ xftfreetype.c Sun Mar 27 18:51:53 2005
+@@ -289,7 +289,8 @@ _XftReleaseFile (XftFtFile *f)
+ if (f->face)
+ FT_Done_Face (f->face);
+ }
+- XftMemFree (XFT_MEM_FILE, sizeof (XftFtFile) + strlen (f->file) + 1);
++ XftMemFree (XFT_MEM_FILE,
++ sizeof (XftFtFile) + (f->file ? strlen (f->file) + 1 : 0));
+ free (f);
+ }
+