[poppler] poppler/JPEG2000Stream.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Nov 24 13:49:25 PST 2010
poppler/JPEG2000Stream.h | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit cf32faaa16d763561fb9dfc4469345e4b3ba2369
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Nov 24 21:48:54 2010 +0000
Protect against NULL values here
diff --git a/poppler/JPEG2000Stream.h b/poppler/JPEG2000Stream.h
index adec1c3..bda2721 100644
--- a/poppler/JPEG2000Stream.h
+++ b/poppler/JPEG2000Stream.h
@@ -67,6 +67,8 @@ private:
adjust = image->comps[component].prec - 8;
}
+ if (unlikely(image->comps[component].data == NULL)) return EOF;
+
int r = image->comps[component].data[y * w + x];
r += (image->comps[component].sgnd ? 1 << (image->comps[0].prec - 1) : 0);
More information about the poppler
mailing list