Skip to content

Commit 187112e

Browse files
committed
Add an extra check for null dereferencing
For completeness sake
1 parent 953f399 commit 187112e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/cmsio0.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,8 @@ cmsTagTypeSignature _cmsGetTagTrueType(cmsHPROFILE hProfile, cmsTagSignature sig
17931793

17941794
// Get the handler. The true type is there
17951795
TypeHandler = Icc -> TagTypeHandlers[n];
1796+
if (TypeHandler == NULL) return (cmsTagTypeSignature) 0;
1797+
17961798
return TypeHandler ->Signature;
17971799
}
17981800

0 commit comments

Comments
 (0)