d3d12_guid_sites: filter IEEE-754 float4 SIMD constant false positives #525
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/525"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by kotekompotek on 2026-11-24T06:55:57Z.
IEEE-754
float4SIMD constants in.rdata(such as(1.5f, 1.0f, ...)or(0.1f, 1.0f, ...)) frequently have exponent/mantissa bits in bytes 7 and 8 that match RFC-4122 UUID version 3/4 and variant10xx, pollutingd3d12_guid_sites.pyoutput with dozens of false-positiveUNKNOWNGUIDs (62 out of 259 unknowns on a retail console.exe)._looks_like_float4()totools/d3d12_guid_sites.pyand reject such constants inguid_shaped().tests/test_d3d12_guid_sites_float4.pyverifying that float4 constants are rejected while real D3D12/GDK GUIDs remain accepted (9 passedviapytest).Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T07:38:21Z.
Merging. Why merged: float4 SIMD constants such as (1.5f, 1.0f, ...) were being reported as GUIDs; the new filter rejects them while every real D3D12/GDK GUID is still accepted.
Why it's good: security-reviewed; tested on Windows 11 on main
d42773d: the new test fails on main (1 failed / 1 passed) and passes with this PR (2/2); the existing 10 guid_sites tests still pass.AI-assisted (Claude Code, Claude Opus 5.5).