Skip to content

UB runtime error: null pointer passed as argument at IccProfLib/IccUtil.cpp:1277:17 #380

@xsscx

Description

@xsscx

Maintainer Repro

Mon Dec 29 09:05:26 PM UTC 2025

XML

<?l?><IccProfile><Header><ProfileDe0ice0lass></ProfileDe0ice0lass><Data0olourSpace></Data0olourSpace></Header><Tags><utf8TextType><TagSignature>></TagSignature><TagSignature><IccProfile></IccProfile>Signature>:>>>>></TagSignature><TextData>0</TextData></utf8TextType></Tags></IccProfile>

PoC iccFromXml foo.xml foo.icc

Expected Output

IccProfLib/IccUtil.cpp:1277:17: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/string.h:408:33: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior IccProfLib/IccUtil.cpp:1277:17

Metadata

Metadata

Assignees

No one assigned

    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