Skip to content

TC in CIccSegmentedCurveXml::ToXml() at IccXML/IccLibXML/IccMpeXml.cpp:976:49 #389

@xsscx

Description

@xsscx

Maintainer Repro

Tue Dec 30 01:58:41 PM UTC 2025

git rev-parse HEAD && git show --no-patch --oneline
b656e80
b656e80 (HEAD, origin/master, origin/HEAD, master) Add: Defense in Depth (#385)

Step 1. cd Testing/Calc

Step 2. iccFromXml srgbCalc++Test.xml srgbCalc++Test.icc

Step 3. iccToXml srgbCalc++Test.iccsrgbCalc++Test-xml-icc-xml.xml

Expected Output

IccXML/IccLibXML/IccMpeXml.cpp:976:49: runtime error: member call on address 0x504000000310 which does not point to an object of type 'CIccFormulaCurveSegmentXml'
0x504000000310: note: object is of type 'CIccFormulaCurveSegment'
 00 00 00 00  70 90 64 9d c7 76 00 00  ff ff 7f ff ff ff 7f 7f  00 00 00 00 00 00 04 be  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'CIccFormulaCurveSegment'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior IccXML/IccLibXML/IccMpeXml.cpp:976:49
XML successfully created

Metadata

Metadata

Labels

BugBug ReportIn ScopeMaintainer indicates In Scope 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