summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-03-03 03:28:06 +0800
committerkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-03-03 03:28:06 +0800
commit9e52b0d38413b6d90fce547145493a7071339557 (patch)
tree88454080e294f86ac840b919a11b55da0408510e
parentbcb42dd5b939cdb2de2e60c4046b4f139eba116e (diff)
downloadxorg-devel-ports-9e52b0d38413b6d90fce547145493a7071339557.tar.gz
xorg-devel-ports-9e52b0d38413b6d90fce547145493a7071339557.tar.zst
xorg-devel-ports-9e52b0d38413b6d90fce547145493a7071339557.zip
Update to 1.4.5
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@442 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r--x11-fonts/libXfont/Makefile3
-rw-r--r--x11-fonts/libXfont/distinfo4
-rw-r--r--x11-fonts/libXfont/files/patch-fontmisc.h25
-rw-r--r--x11-fonts/libXfont/files/patch-src_fontfile_decompress.c99
-rw-r--r--x11-fonts/libXfont/files/patch-src_util_atom.c30
5 files changed, 3 insertions, 158 deletions
diff --git a/x11-fonts/libXfont/Makefile b/x11-fonts/libXfont/Makefile
index 96a9eb9..4833050 100644
--- a/x11-fonts/libXfont/Makefile
+++ b/x11-fonts/libXfont/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= libXfont
-PORTVERSION= 1.4.4
-PORTREVISION= 1
+PORTVERSION= 1.4.5
PORTEPOCH= 1
CATEGORIES= x11-fonts
diff --git a/x11-fonts/libXfont/distinfo b/x11-fonts/libXfont/distinfo
index 41f79ca..caac3e2 100644
--- a/x11-fonts/libXfont/distinfo
+++ b/x11-fonts/libXfont/distinfo
@@ -1,2 +1,2 @@
-SHA256 (xorg/lib/libXfont-1.4.4.tar.bz2) = a2065f5f66882f7a9cb0eb674e16d284da48e449af443eda272e99832be8239a
-SIZE (xorg/lib/libXfont-1.4.4.tar.bz2) = 440022
+SHA256 (xorg/lib/libXfont-1.4.5.tar.bz2) = bbf96fb80b6b95cdb1dc968085082a6e668193a54cd9d6e2af669909c0cb7170
+SIZE (xorg/lib/libXfont-1.4.5.tar.bz2) = 470879
diff --git a/x11-fonts/libXfont/files/patch-fontmisc.h b/x11-fonts/libXfont/files/patch-fontmisc.h
deleted file mode 100644
index 3932c2d..0000000
--- a/x11-fonts/libXfont/files/patch-fontmisc.h
+++ /dev/null
@@ -1,25 +0,0 @@
-From 3715cd752bac912a56aa1cbb9dd874624a709aab Mon Sep 17 00:00:00 2001
-From: Alan Coopersmith <alan.coopersmith@oracle.com>
-Date: Sun, 02 Oct 2011 16:16:05 +0000
-Subject: Add const attributes to fix gcc -Wwrite-strings warnings
-
-Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
----
-(limited to 'include/X11/fonts/fontmisc.h')
-
-diff --git a/include/X11/fonts/fontmisc.h b/include/X11/fonts/fontmisc.h
-index 3da1e63..73a8247 100644
---- include/X11/fonts/fontmisc.h
-+++ include/X11/fonts/fontmisc.h
-@@ -52,7 +52,7 @@ in this Software without prior written authorization from The Open Group.
- #define FALSE 0
- #endif
-
--extern Atom MakeAtom ( char *string, unsigned len, int makeit );
-+extern Atom MakeAtom ( const char *string, unsigned len, int makeit );
- extern int ValidAtom ( Atom atom );
- extern char *NameForAtom (Atom atom);
-
---
-cgit v0.9.0.2-2-gbebe
diff --git a/x11-fonts/libXfont/files/patch-src_fontfile_decompress.c b/x11-fonts/libXfont/files/patch-src_fontfile_decompress.c
deleted file mode 100644
index fe04e06..0000000
--- a/x11-fonts/libXfont/files/patch-src_fontfile_decompress.c
+++ /dev/null
@@ -1,99 +0,0 @@
-From bd48ad11fd11412c62c3ac8ed5d52c4f10a985aa Mon Sep 17 00:00:00 2001
-From: Joerg Sonnenberger <joerg@britannica.bec.de>
-Date: Sun, 21 Aug 2011 16:51:53 +0000
-Subject: Do proper input validation to fix for CVE-2011-2895.
-
-It ensures that all valid input can be decompressed, checks that the
-overflow conditions doesn't happen and generally tightens the
-validation of the LZW stream and doesn't pessimize the inner loop for
-no good reason. It's derived from a change in libarchive from 2004.
-
-Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-Reviewed-by: Tomas Hoger <thoger@redhat.com>
----
---- src/fontfile/decompress.c.orig 2011-08-10 22:22:01.000000000 +0200
-+++ src/fontfile/decompress.c 2012-03-02 11:59:57.000000000 +0100
-@@ -97,7 +97,7 @@
- #define FIRST 257 /* first free entry */
- #define CLEAR 256 /* table clear output code */
-
--#define STACK_SIZE 8192
-+#define STACK_SIZE 65300
-
- typedef struct _compressedFILE {
- BufFilePtr file;
-@@ -178,14 +178,12 @@
- file->tab_suffix[code] = (char_type) code;
- }
- file->free_ent = ((file->block_compress) ? FIRST : 256 );
-+ file->oldcode = -1;
- file->clear_flg = 0;
- file->offset = 0;
- file->size = 0;
- file->stackp = file->de_stack;
- bzero(file->buf, BITS);
-- file->finchar = file->oldcode = getcode (file);
-- if (file->oldcode != -1)
-- *file->stackp++ = file->finchar;
- return BufFileCreate ((char *) file,
- BufCompressedFill,
- 0,
-@@ -230,9 +228,6 @@
- if (buf == bufend)
- break;
-
-- if (oldcode == -1)
-- break;
--
- code = getcode (file);
- if (code == -1)
- break;
-@@ -241,26 +236,34 @@
- for ( code = 255; code >= 0; code-- )
- file->tab_prefix[code] = 0;
- file->clear_flg = 1;
-- file->free_ent = FIRST - 1;
-- if ( (code = getcode (file)) == -1 ) /* O, untimely death! */
-- break;
-+ file->free_ent = FIRST;
-+ oldcode = -1;
-+ continue;
- }
- incode = code;
- /*
- * Special case for KwKwK string.
- */
- if ( code >= file->free_ent ) {
-+ if ( code > file->free_ent || oldcode == -1 ) {
-+ /* Bad stream. */
-+ return BUFFILEEOF;
-+ }
- *stackp++ = finchar;
- code = oldcode;
- }
-+ /*
-+ * The above condition ensures that code < free_ent.
-+ * The construction of tab_prefeixof in turn guarantees that
-+ * each iteration decreased code and therefore stack usage is
-+ * bound by 1 << BITS - 256.
-+ */
-
- /*
- * Generate output characters in reverse order
- */
- while ( code >= 256 )
- {
-- if (stackp - de_stack >= STACK_SIZE - 1)
-- return BUFFILEEOF;
- *stackp++ = file->tab_suffix[code];
- code = file->tab_prefix[code];
- }
-@@ -270,7 +273,7 @@
- /*
- * Generate the new entry.
- */
-- if ( (code=file->free_ent) < file->maxmaxcode ) {
-+ if ( (code=file->free_ent) < file->maxmaxcode && oldcode != -1) {
- file->tab_prefix[code] = (unsigned short)oldcode;
- file->tab_suffix[code] = finchar;
- file->free_ent = code+1;
diff --git a/x11-fonts/libXfont/files/patch-src_util_atom.c b/x11-fonts/libXfont/files/patch-src_util_atom.c
deleted file mode 100644
index c417479..0000000
--- a/x11-fonts/libXfont/files/patch-src_util_atom.c
+++ /dev/null
@@ -1,30 +0,0 @@
-From 3715cd752bac912a56aa1cbb9dd874624a709aab Mon Sep 17 00:00:00 2001
-From: Alan Coopersmith <alan.coopersmith@oracle.com>
-Date: Sun, 02 Oct 2011 16:16:05 +0000
-Subject: Add const attributes to fix gcc -Wwrite-strings warnings
-
-Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
----
-(limited to 'src/util/atom.c')
-
---- src/util/atom.c.orig 2010-10-07 06:12:21.000000000 +0200
-+++ src/util/atom.c 2012-03-02 12:09:16.000000000 +0100
-@@ -54,7 +54,7 @@
- static Atom lastAtom;
-
- static int
--Hash(char *string, int len)
-+Hash(const char *string, int len)
- {
- int h;
-
-@@ -147,7 +147,7 @@
- #endif
-
- weak Atom
--MakeAtom(char *string, unsigned len, int makeit)
-+MakeAtom(const char *string, unsigned len, int makeit)
- {
- AtomListPtr a;
- int hash;