[poppler] Branch 'poppler-0.16' - poppler/GfxState.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Feb 26 17:37:43 PST 2011
poppler/GfxState.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1a68f4b34dbb29d0074cba00a49b82686e774949
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Feb 27 01:39:23 2011 +0000
Fix crash in some pdf
Has to be 3 and not nComps since it's a output buffer, a the input one
Bug 34357
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 78ac5a8..2ce11fb 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1599,7 +1599,7 @@ void GfxICCBasedColorSpace::getRGBLine(Guchar *in, unsigned int *out,
int length) {
#ifdef USE_CMS
if (lineTransform != 0) {
- Guchar* tmp = (Guchar *)gmallocn(nComps * length, sizeof(Guchar));
+ Guchar* tmp = (Guchar *)gmallocn(3 * length, sizeof(Guchar));
lineTransform->doTransform(in, tmp, length);
for (int i = 0; i < length; ++i) {
Guchar *current = tmp + (i * 3);
More information about the poppler
mailing list