14 lines
511 B
Diff
14 lines
511 B
Diff
diff -Nur poppler-0.67.0-bak/poppler/Stream.cc poppler-0.67.0/poppler/Stream.cc
|
|
--- poppler-0.67.0-bak/poppler/Stream.cc 2019-04-17 18:06:23.521000000 +0800
|
|
+++ poppler-0.67.0/poppler/Stream.cc 2019-04-18 11:40:15.056000000 +0800
|
|
@@ -504,6 +504,9 @@
|
|
}
|
|
|
|
int readChars = str->doGetChars(inputLineSize, inputLine);
|
|
+ if (unlikely(readChars == -1)) {
|
|
+ readChars = 0;
|
|
+ }
|
|
for ( ; readChars < inputLineSize; readChars++) inputLine[readChars] = EOF;
|
|
if (nBits == 1) {
|
|
Guchar *p = inputLine;
|