diff options
author | Thomas Freitag <Thomas.Freitag@alfa.de> | 2013-11-21 23:53:53 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-11-21 23:53:53 +0100 |
commit | 9ae29c7a07d0f372dbfc4aca17bbb646126aedb5 (patch) | |
tree | d3d60906e5052633234a89aa73c80a556b4247ae | |
parent | 47605a8aaf85bee21601219b04c0c8e6cf982507 (diff) |
Don't end loop if reading from GooFile fails
Bug #71835
-rw-r--r-- | poppler/Stream.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/poppler/Stream.cc b/poppler/Stream.cc index 41cb8c1d..8ef061ab 100644 --- a/poppler/Stream.cc +++ b/poppler/Stream.cc @@ -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) { |