summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-01-20 18:24:51 +0000
committerjoerg <joerg@pkgsrc.org>2008-01-20 18:24:51 +0000
commitb3c420cb4b50681d2ddc8ff5d78903a3c11dfe7a (patch)
treeb64645fbd21c714a0491eace944e23c8a3ae9343 /x11
parentdde47471aa6d5c7ffc0b040bd46ae604360ceca9 (diff)
downloadpkgsrc-b3c420cb4b50681d2ddc8ff5d78903a3c11dfe7a.tar.gz
libXfont-1.3.1nb2:
Include upstream fix for another PCF integer overflow. This is CVE-2008-0006.
Diffstat (limited to 'x11')
-rw-r--r--x11/libXfont/Makefile4
-rw-r--r--x11/libXfont/distinfo3
-rw-r--r--x11/libXfont/patches/patch-ab24
3 files changed, 28 insertions, 3 deletions
diff --git a/x11/libXfont/Makefile b/x11/libXfont/Makefile
index dc63ebb6c81..345e54f39f5 100644
--- a/x11/libXfont/Makefile
+++ b/x11/libXfont/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2007/09/24 16:24:48 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2008/01/20 18:24:51 joerg Exp $
#
DISTNAME= libXfont-1.3.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= x11 devel fonts
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/lib/
EXTRACT_SUFX= .tar.bz2
diff --git a/x11/libXfont/distinfo b/x11/libXfont/distinfo
index 2fd78aa651f..6a49d1bfb3e 100644
--- a/x11/libXfont/distinfo
+++ b/x11/libXfont/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2007/09/24 16:24:48 joerg Exp $
+$NetBSD: distinfo,v 1.8 2008/01/20 18:24:51 joerg Exp $
SHA1 (libXfont-1.3.1.tar.bz2) = 90153414cd3580d92cad6469166c099749cddd29
RMD160 (libXfont-1.3.1.tar.bz2) = 13c8ed7b33ec0c4f08c032d74958e49d3c177464
Size (libXfont-1.3.1.tar.bz2) = 564235 bytes
SHA1 (patch-aa) = e421de2c9b67b46c2dab651ba1bab13fd08df914
+SHA1 (patch-ab) = 56339bd99f714be3d9a7d697c39eab1b13794c3b
diff --git a/x11/libXfont/patches/patch-ab b/x11/libXfont/patches/patch-ab
new file mode 100644
index 00000000000..8fb87af94eb
--- /dev/null
+++ b/x11/libXfont/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.3 2008/01/20 18:24:51 joerg Exp $
+
+--- src/bitmap/pcfread.c.orig 2007-09-05 02:18:23.000000000 +0200
++++ src/bitmap/pcfread.c
+@@ -588,6 +588,9 @@ pcfReadFont(FontPtr pFont, FontFilePtr f
+ pFont->info.lastRow = pcfGetINT16(file, format);
+ pFont->info.defaultCh = pcfGetINT16(file, format);
+ if (IS_EOF(file)) goto Bail;
++ if (pFont->info.firstCol > pFont->info.lastCol ||
++ pFont->info.firstRow > pFont->info.lastRow ||
++ pFont->info.lastCol-pFont->info.firstCol > 255) goto Bail;
+
+ nencoding = (pFont->info.lastCol - pFont->info.firstCol + 1) *
+ (pFont->info.lastRow - pFont->info.firstRow + 1);
+@@ -726,6 +729,9 @@ pcfReadFontInfo(FontInfoPtr pFontInfo, F
+ pFontInfo->lastRow = pcfGetINT16(file, format);
+ pFontInfo->defaultCh = pcfGetINT16(file, format);
+ if (IS_EOF(file)) goto Bail;
++ if (pFontInfo->firstCol > pFontInfo->lastCol ||
++ pFontInfo->firstRow > pFontInfo->lastRow ||
++ pFontInfo->lastCol-pFontInfo->firstCol > 255) goto Bail;
+
+ nencoding = (pFontInfo->lastCol - pFontInfo->firstCol + 1) *
+ (pFontInfo->lastRow - pFontInfo->firstRow + 1);