Skip to content

Fix: CIccProfileXml::LoadXml to return false instead of NULL #495

@xsscx

Description

@xsscx

Maintainer Patch

Mon Jan 19 05:07:31 PM UTC 2026

diff --git a/IccXML/IccLibXML/IccProfileXml.cpp b/IccXML/IccLibXML/IccProfileXml.cpp
index ae93da0..a7a7c2e 100644
--- a/IccXML/IccLibXML/IccProfileXml.cpp
+++ b/IccXML/IccLibXML/IccProfileXml.cpp
@@ -877,7 +877,7 @@ bool CIccProfileXml::LoadXml(const char *szFilename, const char *szRelaxNGDir, s
   doc = xmlReadFile(szFilename, NULL, 0);

   if (doc == NULL)
-    return NULL;
+    return false;

   if (szRelaxNGDir && szRelaxNGDir[0]) {
     xmlRelaxNGParserCtxt* rlxParser;

Metadata

Metadata

Assignees

Labels

BugBug ReportTriagedMaintainer indicates triaged status and ready for developer handofflibFuzzerlibFuzzer Related

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions