[PR #1115] boot_trace: skip unparseable D3D12 sequence fields (D3D12-TRACE-SEQUENCE-LIMIT) #1150

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1115
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/d3d12-trace-sequence-limit


📝 Commits (1)

  • 6bceb77 boot_trace: skip unparseable D3D12 sequence fields (D3D12-TRACE-SEQUENCE-LIMIT)

📊 Changes

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

View changed files

➕ tests/test_boot_trace_sequence_limit.py (+61 -0)
📝 tools/boot_trace.py (+8 -1)

📄 Description

Item ID: D3D12-TRACE-SEQUENCE-LIMIT

Hardens tools/boot_trace.py:parse_d3d12() against corrupted D3D12 trace sequence numbers whose digit count exceeds sys.get_int_max_str_digits().

Changes

  • tools/boot_trace.py (parse_d3d12): Wraps int(match.group(1)) in try ... except ValueError, treating oversized/unparseable sequence fields as ignored_lines instead of aborting trace parsing, while preserving subsequent valid trace calls.
  • tests/test_boot_trace_sequence_limit.py: Adds synthetic unit tests verifying that malformed oversized sequence lines are ignored without losing valid calls before/after or breaking sequence gap accounting.

Verification

  • AI-assisted; synthetic tests only, no game data (python -I scripts/check_no_game_data.py).

🔄 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/1115 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/d3d12-trace-sequence-limit` --- ### 📝 Commits (1) - [`6bceb77`](https://github.com/ubiquitarianism/leonida/commit/6bceb77787b1e0e3919cb88b1c455c9db06aabe4) boot_trace: skip unparseable D3D12 sequence fields (D3D12-TRACE-SEQUENCE-LIMIT) ### 📊 Changes **2 files changed** (+69 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_boot_trace_sequence_limit.py` (+61 -0) 📝 `tools/boot_trace.py` (+8 -1) </details> ### 📄 Description Item ID: `D3D12-TRACE-SEQUENCE-LIMIT` Hardens `tools/boot_trace.py:parse_d3d12()` against corrupted D3D12 trace sequence numbers whose digit count exceeds `sys.get_int_max_str_digits()`. ### Changes - **`tools/boot_trace.py` (`parse_d3d12`):** Wraps `int(match.group(1))` in `try ... except ValueError`, treating oversized/unparseable sequence fields as `ignored_lines` instead of aborting trace parsing, while preserving subsequent valid trace calls. - **`tests/test_boot_trace_sequence_limit.py`:** Adds synthetic unit tests verifying that malformed oversized sequence lines are ignored without losing valid calls before/after or breaking sequence gap accounting. ### Verification - AI-assisted; synthetic tests only, no game data (`python -I scripts/check_no_game_data.py`). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1150
No description provided.