Skip to content

Commit

Permalink
check whether xform->Lut is valid in cmsTransform2DeviceLink
Browse files Browse the repository at this point in the history
  • Loading branch information
x2018 committed Nov 1, 2023
1 parent 32ded9e commit e2f48fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmsvirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,9 @@ cmsHPROFILE CMSEXPORT cmsTransform2DeviceLink(cmsHTRANSFORM hTransform, cmsFloat

_cmsAssert(hTransform != NULL);

// Check if the pipeline holding is valid
if (xform -> Lut == NULL) return NULL;

// Get the first mpe to check for named color
mpe = cmsPipelineGetPtrToFirstStage(xform ->Lut);

Expand Down

0 comments on commit e2f48fa

Please sign in to comment.