ogajduse / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
4931932
diff -up texlive-2007/texk/xdvik/dvi-draw.c.maxchar texlive-2007/texk/xdvik/dvi-draw.c
4931932
--- texlive-2007/texk/xdvik/dvi-draw.c.maxchar	2007-11-20 15:21:35.000000000 +0100
4931932
+++ texlive-2007/texk/xdvik/dvi-draw.c	2007-11-22 15:31:06.000000000 +0100
4931932
@@ -5911,6 +5911,8 @@ get_t1_glyph(
4931932
 	      t1libid, currinf.fontp->scale,
4931932
 	      size, currwin.shrinkfactor));
4931932
 
4931932
+    if (ch > maxchar)
4931932
+    	return NULL;
4931932
     /* Check if the glyph already has been rendered */
4931932
     if ((g = &currinf.fontp->glyph[ch])->bitmap.bits == NULL) {
4931932
 	int bitmapbytes;