From efe6d83852b131852550de948e7d0869c01c31f8 Mon Sep 17 00:00:00 2001 From: Robin Watts <Robin.Watts@artifex.com> Date: Tue, 25 Sep 2018 13:57:54 -0400 Subject: [PATCH] Bug 699809: Fix uninitialised value for render_cond. gsicc_get_srcprofile doesn't return a render_cond value in all cases. This leads to an undefined value being read, and this can lead to a SEGV. --- base/gsicc_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/base/gsicc_cache.c b/base/gsicc_cache.c index 68194e6..bbe7cf0 100644 --- a/base/gsicc_cache.c +++ b/base/gsicc_cache.c @@ -644,6 +644,7 @@ gsicc_get_srcprofile(gsicc_colorbuffer_t data_cs, { (*profile) = NULL; (*render_cond).rendering_intent = gsPERCEPTUAL; + (*render_cond).cmm = gsCMM_DEFAULT; switch (graphics_type_tag & ~GS_DEVICE_ENCODES_TAGS) { case GS_UNKNOWN_TAG: case GS_UNTOUCHED_TAG: -- 2.9.1