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

Martin Schröder martin at oneiros.de
Sat Sep 30 19:20:42 CEST 2006


2006/9/30, Martin Schröder <martin at oneiros.de>:
> And on Linux it works in valgrind %-{

Well, it pdftex exits succesfully, but valgrind -v complains:

==5823== Invalid read of size 2
==5823==    at 0x49372D: ttf_reindex_glyphs (writettf.c:1074)
==5823==    by 0x4940E8: ttf_subset_font (writettf.c:1255)
==5823==    by 0x49439F: writettf (writettf.c:1315)
==5823==    by 0x488D52: write_fontfile (writefont.c:187)
==5823==    by 0x48935C: dopdffont (writefont.c:300)
==5823==    by 0x4798A6: closefilesandterminate (pdftex3.c:6008)
==5823==    by 0x41675B: mainbody (pdftexini.c:5663)
==5823==    by 0x47D0F2: main (pdftexextra.c:341)
==5823==  Address 0x6566028 is 8 bytes before a block of size 771,640 alloc'd
==5823==    at 0x4A20619: malloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==5823==    by 0x54A92A: xmalloc (xmalloc.c:28)
==5823==    by 0x49107B: ttf_read_mapx (writettf.c:358)
==5823==    by 0x4921D5: ttf_read_font (writettf.c:649)
==5823==    by 0x494351: writettf (writettf.c:1309)
==5823==    by 0x488D52: write_fontfile (writefont.c:187)
==5823==    by 0x48935C: dopdffont (writefont.c:300)
==5823==    by 0x4798A6: closefilesandterminate (pdftex3.c:6008)
==5823==    by 0x41675B: mainbody (pdftexini.c:5663)
==5823==    by 0x47D0F2: main (pdftexextra.c:341)
==5823==
==5823== Invalid read of size 2
==5823==    at 0x4937A3: ttf_reindex_glyphs (writettf.c:1079)
==5823==    by 0x4940E8: ttf_subset_font (writettf.c:1255)
==5823==    by 0x49439F: writettf (writettf.c:1315)
==5823==    by 0x488D52: write_fontfile (writefont.c:187)
==5823==    by 0x48935C: dopdffont (writefont.c:300)
==5823==    by 0x4798A6: closefilesandterminate (pdftex3.c:6008)
==5823==    by 0x41675B: mainbody (pdftexini.c:5663)
==5823==    by 0x47D0F2: main (pdftexextra.c:341)
==5823==  Address 0x6566028 is 8 bytes before a block of size 771,640 alloc'd
==5823==    at 0x4A20619: malloc (in
/usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==5823==    by 0x54A92A: xmalloc (xmalloc.c:28)
==5823==    by 0x49107B: ttf_read_mapx (writettf.c:358)
==5823==    by 0x4921D5: ttf_read_font (writettf.c:649)
==5823==    by 0x494351: writettf (writettf.c:1309)
==5823==    by 0x488D52: write_fontfile (writefont.c:187)
==5823==    by 0x48935C: dopdffont (writefont.c:300)
==5823==    by 0x4798A6: closefilesandterminate (pdftex3.c:6008)
==5823==    by 0x41675B: mainbody (pdftexini.c:5663)
==5823==    by 0x47D0F2: main (pdftexextra.c:341)

Best
   Martin


More information about the pdftex mailing list