mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1119] gdk_runtime_calls: validate table lookup shapes (GDK-TABLE-SHAPE) #1154
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1154
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1119
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/gdk-table-shape📝 Commits (1)
4a18d32gdk_runtime_calls: validate table lookup shapes (GDK-TABLE-SHAPE)📊 Changes
2 files changed (+77 additions, -0 deletions)
View changed files
➕
tests/test_gdk_table_shape.py(+66 -0)📝
tools/gdk_runtime_calls.py(+11 -0)📄 Description
Item ID:
GDK-TABLE-SHAPEValidates the JSON structure of GDK class/interface tables in
tools/gdk_runtime_calls.py:RuntimeTable.__init__()before opening or inspecting any PE image.Changes
tools/gdk_runtime_calls.py(RuntimeTable.__init__): Validates that the parsed document is adict, thatclassesandinterfacesaredicts, that each entry is adict, and that every entry'sidis a non-emptystr, raising a descriptiveValueErroron malformed inputs.tests/test_gdk_table_shape.py: Adds synthetic tests covering non-dict roots, non-dictclasses/interfaces, non-dict entries, and missing/empty/non-stringidvalues before PE inspection.Verification
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.