[pdftex] Bug? of pdftex beta upon reading some truetype?

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Sat Sep 30 03:49:38 CEST 2006


Hi Martin,

> On OpenBSD it crashes a bit earlier:
> #0  0x1c07ecdb in ttf_reindex_glyphs () at
> ../../../../src/texk/web2c/pdftexdir/writettf.c:1074
> 1074            if (glyph->newindex < 0) {

Does something change if you apply the following change?

Best,
Akira


--- writettf.c.orig	Sat Sep 30 10:41:04 2006
+++ writettf.c	Sat Sep 30 10:43:04 2006
@@ -1072,7 +1072,7 @@
       append_new_glyph:
         assert (glyph - glyph_tab < glyphs_count);
         if (glyph->newindex < 0) {
-            glyph_index[new_glyphs_count] = glyph - glyph_tab;
+            glyph_index[new_glyphs_count] = (short) (glyph - glyph_tab);
             glyph->newindex = new_glyphs_count;
             new_glyphs_count++;
         }


More information about the pdftex mailing list