Skip to content

Conversation

@ChrisCoxArt
Copy link
Contributor

Create copy constructors to make child classes from parent class.
Cast generic pointer to specific type pointer,
then copy instead of type punning (casting) to get child class.
Fix a misnamed CIccSingleSampledeCurveXml class along the way.
Fixes #388, #389, #390

Pull Request Checklist

  • Have you followed the guidelines in Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you built your Pull Request locally with the Build Instructions?
  • Have you added or updated relevant tests?
  • Have you added or updated relevant docs?

Give XML classes a way to convert from base classes.
copy base class to child class instead of type punning (and hoping).
Current dynamic_cast while I keep testing.
Checking in debug state because I don't want to lose this.
reduce constructors on types that didn't need them.
remove the extra safety after doing some testing
@ChrisCoxArt ChrisCoxArt requested a review from xsscx as a code owner January 4, 2026 22:20
@xsscx xsscx self-assigned this Jan 4, 2026
@xsscx xsscx added PR Pull Request Review in Process PR being Reviewed by Maintainers labels Jan 4, 2026
Copy link
Member

@xsscx xsscx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sun Jan 4 10:36:33 PM UTC 2026

@xsscx xsscx added the Pending Merge Maintainer indicates Merge Pending and requests no further changes label Jan 4, 2026
@xsscx xsscx changed the title Fix bad type casting in XML curve writing Fix: Type Confusion in CIccSegmentedCurveXml::ToXml() & ToXmlCurve() at IccXML/IccLibXML/IccMpeXml.cpp Jan 4, 2026
@xsscx xsscx added Security Security Related Pending Merge Maintainer indicates Merge Pending and requests no further changes and removed Pending Merge Maintainer indicates Merge Pending and requests no further changes Review in Process PR being Reviewed by Maintainers labels Jan 4, 2026
@xsscx xsscx merged commit 024b7af into master Jan 4, 2026
27 checks passed
@xsscx xsscx added Merged Merged and removed Pending Merge Maintainer indicates Merge Pending and requests no further changes labels Jan 4, 2026
@xsscx
Copy link
Member

xsscx commented Jan 4, 2026

GHSA-7662-mf46-wr88
#388

@xsscx xsscx added the CVE Requested Maintainer indicates a CVE has been Requested label Jan 4, 2026
@xsscx
Copy link
Member

xsscx commented Jan 4, 2026

GHSA-v3q7-7hw6-6jq8
#389

@ChrisCoxArt ChrisCoxArt deleted the issue-388 branch January 7, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CVE Requested Maintainer indicates a CVE has been Requested Merged Merged PR Pull Request Security Security Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TC in CIccSegmentedCurveXml::ToXml() at IccXML/IccLibXML/IccMpeXml.cpp:976:49 TC in ToXmlCurve() at IccXML/IccLibXML/IccMpeXml.cpp:1038:36

3 participants