Index: poppler/poppler-0.16.0/poppler/Stream.cc =================================================================== --- poppler-0.16.0.orig/poppler/Stream.cc 2011-05-31 11:55:53.000000000 +0000 +++ poppler-0.16.0/poppler/Stream.cc 2011-05-31 11:56:17.000000000 +0000 @@ -1085,9 +1085,11 @@ } else if (c1 == EOF) { eof = gTrue; x = 0; + return EOF; } else { error(getPos(), "Illegal character <%02x> in ASCIIHex stream", c1); x = 0; + return EOF; } if (c2 >= '0' && c2 <= '9') { x += c2 - '0'; @@ -1098,8 +1100,10 @@ } else if (c2 == EOF) { eof = gTrue; x = 0; + return EOF; } else { error(getPos(), "Illegal character <%02x> in ASCIIHex stream", c2); + return EOF; } buf = x & 0xff; return buf;