From 5a497490b11410bcd8d09f78c8fccf8341c1c6e1 Mon Sep 17 00:00:00 2001 From: Rajan Halade Date: Wed, 7 Feb 2024 09:27:25 -0800 Subject: [PATCH] Possible NPD in cmsCreate_OkLabProfile --- src/cmsvirt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmsvirt.c b/src/cmsvirt.c index 6084647e..59cf2bfd 100644 --- a/src/cmsvirt.c +++ b/src/cmsvirt.c @@ -745,6 +745,8 @@ cmsHPROFILE CMSEXPORT cmsCreate_OkLabProfile(cmsContext ctx) cmsPipeline* BToA = cmsPipelineAlloc(ctx, 3, 3); cmsHPROFILE hProfile = cmsCreateProfilePlaceholder(ctx); + if (!hProfile) // can't allocate + goto error; cmsSetProfileVersion(hProfile, 4.4);