[NTG-pdftex] pdftex 1.11b printID() bug

Hartmut Henkel hartmut_henkel@gmx.de
Wed, 11 Feb 2004 22:43:34 +0100 (CET)


today I got a file from pdftex with


Looks short, eh. More such short /IDs appear every once and then, e. g.
by letting printID() run in a loop. Reason is in utils.c the function
convertStringToHexString(), which calculates

int lin = strlen(in);

from the raw md5 sum, but this can contain real zeros, which are
mis-interpreted as end of string. Solution could be to hardcode

int lin = 16.

And maybe rename the function to something special, e. g.

Have fun.

Regards, Hartmut