mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:50:51 +01:00
[PR #1684] texoff_probe: validate oracle batch/word payloads and handle run errors #1698
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#1698
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/1684
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/texoff-probe-oracle-validation📝 Commits (1)
74295d0texoff_probe: validate oracle batch/word payloads and handle run errors📊 Changes
2 files changed (+95 additions, -3 deletions)
View changed files
📝
tests/test_texoff_probe.py(+72 -0)📝
tools/texoff_probe.py(+23 -3)📄 Description
Item ID:
TEXOFF-PROBE-ORACLE-VALIDATION(claimed in https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156550196)Summary
tools/texoff_probe.py):oracle.run([k])returns alist/tupleof length1, and that its non-string element is alist/tupleof exact lengthlen(rows)containing only non-boolintwords (maskingw & 0xFFFFFFFFbefore thetsharp.POISONcheck andstruct.pack("<I", ...)), returning exit2cleanly instead of crashing withIndexError/TypeError/struct.erroror accepting extra/bool words.runner.Unavailable(exit77) andRuntimeError(exit2) raised duringoracle.run()insidetry ... finally: oracle.close().tests/test_texoff_probe.py):runner.Unavailableduringrun()-> exit77, andRuntimeErrorduringrun()-> exit2, verifyingoracle.close()on every path.Checklist & Verification
python3 -I scripts/check_no_game_data.py tools/texoff_probe.py tests/test_texoff_probe.pypassed)python3 -W error -I tests/test_texoff_probe.py -v:Ran 13 tests ... OKtests/test_texoff_probe.pyagainst unpatchedmaintools/texoff_probe.py):Ran 13 tests ... FAILED (failures=8, errors=11)python3 -m compileall -q make_game.py tools tests: passedpython3 -I tests/test_text_write_line_endings.py:Ran 3 tests ... OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.