mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #573] [MERGED] root_sig_contract: handle deeply nested JSON, duplicate ptr64_hi error, and bad pack_layout inputs (OLD-5357) #616
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#616
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/573
Author: @Taffyyy-ops
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:feat/root-sig-contract-harden📝 Commits (1)
a63d4bbroot_sig_contract: handle deeply nested JSON, spurious ptr64_hi error, and bad pack_layout shapes📊 Changes
2 files changed (+184 additions, -5 deletions)
View changed files
➕
tests/test_root_sig_contract_edges.py(+172 -0)📝
tools/root_sig_contract.py(+12 -5)📄 Description
Claimed in the coordination issue as: OLD-5357 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7126487215)
What and why
Carried over from the closed upstream
ItsNotRexed/LeonidaPR #5357 and rebased cleanly ontoubiquitarianism/leonidamain(a63d4bbd7).Hardens
tools/root_sig_contract.pyfor malformed or boundary inputs:RecursionError) cleanly with exit code 2 instead of an unhandled traceback.ptr64_hierror alongside the primary incompatibility when reconciling constant/descriptor/table halves.pack_layoutsignature/parameter shapes cleanly without raising.unittestregression coverage intests/test_root_sig_contract_edges.py(6 tests).Tested
On Windows 11 with Python 3.12+ after rebasing onto
1c93c8697:python -I tests/test_root_sig_contract_edges.py -v-> Ran 6 tests in 0.259s, OKpython -I tools/root_sig_contract.py --example-> exit 0python -m compileall -q tools/root_sig_contract.py tests/test_root_sig_contract_edges.py-> exit 0python -I scripts/check_no_game_data.py-> exit 0git diff --check upstream/main..HEAD-> exit 0(Note:
tests/test_root_sig_contract.pyrequirespytest, which is not installed in this host Python environment.)GPUs tested: n/a (host CPU Python stdlib)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.