Skip to content

Example of conversion errors for XML to ICC to XML to ICC #524

@xsscx

Description

@xsscx

Maintainer Repro

Sat Jan 24 03:10:25 AM UTC 2026

Given a single XML File, test the conversion fidelity for XML to ICC to XML to ICC and Report.

Reproduction

Step 1. iccFromXml input.xml input-1.icc
Profile parsed. Profile is invalid, but saved correctly

Step 2. iccToXml input-1.icc input-1.xml
XML successfully created

Step 3. iccFromXml input-1.xml input-2.icc

Unexpected Output

iccFromXml input-1.xml input-2.icc

input-1.xml:64792: parser error : xmlSAX2Characters: huge text node
                              0.000000000000 0.000000000000 0.000000000000 0.000
    ^
input-1.xml:64792: parser error : Extra content at the end of the document
                              0.000000000000 0.000000000000 0.000000000000 0.000
                              ^

Unable to Parse 'input-1.xml'

Unexpected File Size

Given a single XML File of 3.3M the returned XML is 12M.

ls -lah input.xml input-1.xml
-rw-rw-r-- 1 xss xss  12M Jan 24 03:08 input-1.xml
-rw-rw-r-- 1 xss xss 3.3M Jan 24 02:39 input.xml

Expected Output

Similar Inputs & Outputs

Caveat: Exact corruption varies by compiler, platform, and optimization level

input.xml

Metadata

Metadata

Labels

BugBug ReportSecuritySecurity RelatedTriagedMaintainer indicates triaged status and ready for developer handoff

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions