[poppler] poppler/Stream.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Oct 23 16:24:07 PDT 2010
poppler/Stream.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2d0b6e2956a81164bca6adc9aacad0e620480957
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Oct 24 00:23:21 2010 +0100
Here the chars to read is the increment size not the initialSize
Fixes crash in file provided by Robert ÅwiÄcki
diff --git a/poppler/Stream.h b/poppler/Stream.h
index 583278f..e093dad 100644
--- a/poppler/Stream.h
+++ b/poppler/Stream.h
@@ -144,7 +144,7 @@ public:
if (readChars == charsToRead) {
if (lookChar() != EOF) {
size += sizeIncrement;
- charsToRead = initialSize;
+ charsToRead = sizeIncrement;
buf = (Guchar *)grealloc(buf, size);
} else {
continueReading = false;
More information about the poppler
mailing list