[PR #1041] [MERGED] gdk_runtime_calls: bound x86 decoding (X86-DECODE-WINDOW) #1078

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1041
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: fix/x86-decode-window


📝 Commits (1)

  • 3efede9 gdk_runtime_calls: bound x86 decoding to a 15-byte window

📊 Changes

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

View changed files

➕ tests/test_x86_decode_window.py (+53 -0)
📝 tools/gdk_runtime_calls.py (+5 -1)

📄 Description

Claimed in the coordination issue as: X86-DECODE-WINDOW

What and why

Bound the shared x86 decoder to its 15-byte instruction window before scanning prefixes or operands. Previously, a long invalid prefix run scanned the entire remaining buffer before rejection. Invalid offsets now return None without reading the buffer.

Tested

74 unittest tests passed on Windows, including four new synthetic regression tests. The regression tests fail against the original decoder.
Coverage: decode window, GDK runtime calls, import fail-fast, import call sites, int3 cause, text line endings.
check_no_game_data.py and git diff --check passed.

GPUs tested: n/a; CPU-only Python change.
AI-assisted: yes.


🔄 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/1041 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `fix/x86-decode-window` --- ### 📝 Commits (1) - [`3efede9`](https://github.com/ubiquitarianism/leonida/commit/3efede977f82be464e518e099441a6aced010227) gdk_runtime_calls: bound x86 decoding to a 15-byte window ### 📊 Changes **2 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_x86_decode_window.py` (+53 -0) 📝 `tools/gdk_runtime_calls.py` (+5 -1) </details> ### 📄 Description Claimed in the coordination issue as: X86-DECODE-WINDOW ### What and why Bound the shared x86 decoder to its 15-byte instruction window before scanning prefixes or operands. Previously, a long invalid prefix run scanned the entire remaining buffer before rejection. Invalid offsets now return None without reading the buffer. ### Tested 74 unittest tests passed on Windows, including four new synthetic regression tests. The regression tests fail against the original decoder. Coverage: decode window, GDK runtime calls, import fail-fast, import call sites, int3 cause, text line endings. check_no_game_data.py and git diff --check passed. GPUs tested: n/a; CPU-only Python change. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:01 +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#1078
No description provided.