rpms/tetex/devel tetex-3.0-xdvi-maxchar.patch, NONE, 1.1 tetex.spec, 1.113, 1.114

Jindrich Novy (jnovy) fedora-extras-commits at redhat.com
Tue Oct 16 12:55:42 UTC 2007


Author: jnovy

Update of /cvs/extras/rpms/tetex/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24306

Modified Files:
	tetex.spec 
Added Files:
	tetex-3.0-xdvi-maxchar.patch 
Log Message:
- xdvi won't segfault if DVI file contains character which
  is not present in font (#243630)
- enable compilation with ccache


tetex-3.0-xdvi-maxchar.patch:

--- NEW FILE tetex-3.0-xdvi-maxchar.patch ---
diff -up tetex-src-3.0/texk/xdvik/dvi-draw.c.maxchar tetex-src-3.0/texk/xdvik/dvi-draw.c
--- tetex-src-3.0/texk/xdvik/dvi-draw.c.maxchar	2004-11-30 01:45:11.000000000 +0100
+++ tetex-src-3.0/texk/xdvik/dvi-draw.c	2007-10-16 13:57:25.000000000 +0200
@@ -5906,6 +5906,8 @@ get_t1_glyph(
 	      t1libid, currinf.fontp->scale,
 	      size, currwin.shrinkfactor));
 
+    if (ch > maxchar)
+    	return NULL;
     /* Check if the glyph already has been rendered */
     if ((g = &currinf.fontp->glyph[ch])->bitmap.bits == NULL) {
 	int bitmapbytes;


Index: tetex.spec
===================================================================
RCS file: /cvs/extras/rpms/tetex/devel/tetex.spec,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -r1.113 -r1.114
--- tetex.spec	23 Aug 2007 07:51:18 -0000	1.113
+++ tetex.spec	16 Oct 2007 12:55:10 -0000	1.114
@@ -11,7 +11,7 @@
 Summary: The TeX text formatting system.
 Name: tetex
 Version: 3.0
-Release: 43%{?dist}
+Release: 44%{?dist}
 License: Public Domain and GPLv2 and MIT and LPPL and Utopia and Artistic 2.0
 Group: Applications/Publishing
 Requires: tmpwatch, dialog, ed
@@ -90,6 +90,7 @@
 Patch23: tetex-3.0-footfix.patch
 Patch24: tetex-3.0-CVE-2007-0650.patch
 Patch25: tetex-3.0-CVE-2007-3387.patch
+Patch26: tetex-3.0-xdvi-maxchar.patch
 
 ######
 # Japanization patches
@@ -313,6 +314,8 @@
 %patch24 -p1 -b .CVE-2007-0650
 # fix xpdf integer overflow CVE-2007-3387 (#248194)
 %patch25 -p1 -b .CVE-2007-3387
+# xdvi won't segfault when DVI file contains characters not present in font (#243630)
+%patch26 -p1 -b .maxchar
 
 %if %{enable_japanese}
 mkdir texmf/ptex-texmf
@@ -406,6 +409,8 @@
 
 %build
 set -x
+# define CCACHE_DIR to let the build pass with ccache enabled.
+export CCACHE_DIR=$HOME/.ccache
 unset TEXINPUTS || :
 unset HOME || :
 
@@ -465,6 +470,7 @@
 %endif
 
 %install
+export CCACHE_DIR=$HOME/.ccache
 unset TEXINPUTS || :
 unset HOME || :
 rm -rf ${RPM_BUILD_ROOT}
@@ -865,6 +871,11 @@
 %defattr(-,root,root)
 
 %changelog
+* Tue Oct 16 2007 Jindrich Novy <jnovy at redhat.com> 3.0-44
+- xdvi won't segfault if DVI file contains character which
+  is not present in font (#243630)
+- enable compilation with ccache
+
 * Thu Aug 23 2007 Jindrich Novy <jnovy at redhat.com> 3.0-43
 - update License
 - rebuild for BuildID




More information about the fedora-extras-commits mailing list