From 8c636a72c5b74ab5afb8fcc7f3840f21ab040378 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 3 Jan 2013 23:41:47 +1030 Subject: [PATCH 4/4] splash: fix uninitialised memory --- poppler/SplashOutputDev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 6f2d4d6..61299e9 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -4193,7 +4193,7 @@ GBool SplashOutputDev::tilingPatternFill(GfxState *state, Gfx *gfx1, Catalog *ca bitmap = new SplashBitmap(surface_width, surface_height, 1, (paintType == 1) ? colorMode : splashModeMono8, gTrue); memset(bitmap->getAlphaPtr(), 0, bitmap->getWidth() * bitmap->getHeight()); - if (paintType == 2) { + if (paintType == 1) { #if SPLASH_CMYK memset(bitmap->getDataPtr(), (colorMode == splashModeCMYK8 || colorMode == splashModeDeviceN8) ? 0x00 : 0xFF, -- 1.7.10.4