Commit 9ae29c7a authored by Thomas Freitag's avatar Thomas Freitag Committed by Albert Astals Cid

Don't end loop if reading from GooFile fails

Bug #71835
parent 47605a8a
......@@ -819,6 +819,9 @@ GBool FileStream::fillBuf() {
n = fileStreamBufSize;
}
n = file->read(buf, n, offset);
if (n == -1) {
return gFalse;
}
offset += n;
bufEnd = buf + n;
if (bufPtr >= bufEnd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment