[PR #525] [MERGED] d3d12_guid_sites: filter IEEE-754 float4 SIMD constant false positives #572

Closed
opened 2026-11-26 20:18:20 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/525
Author: @kotekompotek
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: work/d3d12-guid-sites-float4-filter


📝 Commits (1)

  • 76faa39 d3d12_guid_sites: filter IEEE-754 float4 SIMD constant false positives

📊 Changes

2 files changed (+69 additions, -0 deletions)

View changed files

➕ tests/test_d3d12_guid_sites_float4.py (+54 -0)
📝 tools/d3d12_guid_sites.py (+15 -0)

📄 Description

IEEE-754 float4 SIMD 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 variant 10xx, polluting d3d12_guid_sites.py output with dozens of false-positive UNKNOWN GUIDs (62 out of 259 unknowns on a retail console .exe).

  • Add _looks_like_float4() to tools/d3d12_guid_sites.py and reject such constants in guid_shaped().
  • Add unit tests in tests/test_d3d12_guid_sites_float4.py verifying that float4 constants are rejected while real D3D12/GDK GUIDs remain accepted (9 passed via pytest).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/525 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `work/d3d12-guid-sites-float4-filter` --- ### 📝 Commits (1) - [`76faa39`](https://github.com/ubiquitarianism/leonida/commit/76faa39680281a9a631d9d2d750058ef0dfac05b) d3d12_guid_sites: filter IEEE-754 float4 SIMD constant false positives ### 📊 Changes **2 files changed** (+69 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_d3d12_guid_sites_float4.py` (+54 -0) 📝 `tools/d3d12_guid_sites.py` (+15 -0) </details> ### 📄 Description IEEE-754 `float4` SIMD 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 variant `10xx`, polluting `d3d12_guid_sites.py` output with dozens of false-positive `UNKNOWN` GUIDs (62 out of 259 unknowns on a retail console `.exe`). - Add `_looks_like_float4()` to `tools/d3d12_guid_sites.py` and reject such constants in `guid_shaped()`. - Add unit tests in `tests/test_d3d12_guid_sites_float4.py` verifying that float4 constants are rejected while real D3D12/GDK GUIDs remain accepted (`9 passed` via `pytest`). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:20 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#572
No description provided.