Skip to content

TC in CIccTag:IsTypeCompressed() at IccProfLib/IccTagBasic.h#L1299 #392

@xsscx

Description

@xsscx

Maintainer Repro

Wed Dec 31 07:11:59 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)
uname -a
Linux 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Step 1. wget https://github.com/xsscx/Commodity-Injection-Signatures/raw/refs/heads/master/graphics/icc/ub-icDataBlockType-IccTagBasic_h-L1299.icc

Step 2. iccToXml ub-icDataBlockType-IccTagBasic_h-L1299.icc ub-icDataBlockType-IccTagBasic_h-L1299.xml

Expected Output

Build/Cmake/../../IccProfLib/IccTagBasic.h:1299:45: runtime error: load of value 16777216, which is not a valid value for type 'icDataBlockType'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior Build/Cmake/../../IccProfLib/IccTagBasic.h:1299:45
XML successfully created

Metadata

Metadata

Assignees

Labels

BugBug ReportIn ScopeMaintainer indicates In Scope ReportPR ReadyThe Issue has been reviewed and ready for PRSecuritySecurity 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