summaryrefslogtreecommitdiff
path: root/x11/xorg-libs/patches/patch-ci
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-09-13 12:27:26 +0000
committerjoerg <joerg@pkgsrc.org>2006-09-13 12:27:26 +0000
commit0d2f507ee672fcccd1736774cac5bc3d1321dd73 (patch)
treec21c08f8d5a3dced8de36183b5544cca7e2ab5a5 /x11/xorg-libs/patches/patch-ci
parent2b18abeced9897636e18e1605b5523c96aa42966 (diff)
downloadpkgsrc-0d2f507ee672fcccd1736774cac5bc3d1321dd73.tar.gz
Fixes for CVE-2006-2006-3739 and CVE-2006-3740.
Bump revision.
Diffstat (limited to 'x11/xorg-libs/patches/patch-ci')
-rw-r--r--x11/xorg-libs/patches/patch-ci15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/xorg-libs/patches/patch-ci b/x11/xorg-libs/patches/patch-ci
new file mode 100644
index 00000000000..c598bb4319e
--- /dev/null
+++ b/x11/xorg-libs/patches/patch-ci
@@ -0,0 +1,15 @@
+$NetBSD: patch-ci,v 1.1 2006/09/13 12:27:26 joerg Exp $
+
+Fixes for CVE-2006-2006-3739 and CVE-2006-3740.
+
+--- lib/font/Type1/util.c.orig 2006-09-13 14:22:13.000000000 +0200
++++ lib/font/Type1/util.c
+@@ -104,7 +104,7 @@ vm_alloc(int bytes)
+ bytes = (bytes + 7) & ~7;
+
+ /* Allocate the space, if it is available */
+- if (bytes <= vm_free) {
++ if (bytes > 0 && bytes <= vm_free) {
+ answer = vm_next;
+ vm_free -= bytes;
+ vm_next += bytes;