poppler/GfxState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1a68f4b34dbb29d0074cba00a49b82686e774949 Author: Albert Astals Cid <[email protected]> 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); _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
