poppler/Stream.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 56044ef482c26f10a8a1371dace049c144659dc7
Author: Albert Astals Cid <[email protected]>
Date:   Mon May 27 00:18:22 2013 +0200

    Fix infinite loop while feeding wrong data in stdin
    
    Take into account that CachedFile::read might not always return
    the number of elems we asked it to read
    
    Bug #64967

diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index e8f5ec7..ffe2638 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -909,7 +909,7 @@ GBool CachedFileStream::fillBuf()
   } else {
     n = cachedStreamBufSize - (bufPos % cachedStreamBufSize);
   }
-  cc->read(buf, 1, n);
+  n = cc->read(buf, 1, n);
   bufEnd = buf + n;
   if (bufPtr >= bufEnd) {
     return gFalse;
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to