[poppler] Branch 'poppler-0.24' - poppler/Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Nov 21 14:54:17 PST 2013


 poppler/Stream.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 9ae29c7a07d0f372dbfc4aca17bbb646126aedb5
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Thu Nov 21 23:53:53 2013 +0100

    Don't end loop if reading from GooFile fails
    
    Bug #71835

diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index 41cb8c1..8ef061a 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) {


More information about the poppler mailing list