[tex-live] [Fwd: pdflatex segmentation fault and patch to fix]
Taco Hoekwater
taco at elvenkind.com
Wed Jan 12 10:35:07 CET 2005
Gerben Wierda wrote:
> I received this excellent bug report from a user (including tracking where
> the crash happened). Can someone get this into xpdf?
It doesn't crash for me either (also linux), but I had a look at the
source, and I can imagine that the actual problem is in the following
segment (commented line).
char *FoFiType1::getNextLine(char *line) {
while (line < (char *)file + len && *line != '\x0a' && *line != '\x0d') {
++line;
}
if (line < (char *)file + len && *line == '\x0d') {
++line;
}
if (line < (char *)file + len && *line == '\x0a') {
++line;
}
if (line >= (char *)file + len) {
return NULL; /* TH: perhaps NULL is not equal to 0 on Mac? */
}
return line;
}
Greetings, Taco
More information about the tex-live
mailing list