mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2203] tools: validate numeric scan/probe arguments #2207
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#2207
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/2203
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:waves-arg-exit2📝 Commits (2)
974629abuffer_bounds_probe: reject non-numeric waves as a bad argumenta33822afind_hash_lookup: validate scan window and result limit📊 Changes
4 files changed (+61 additions, -2 deletions)
View changed files
📝
tests/test_buffer_bounds_probe.py(+7 -0)📝
tests/test_find_hash_lookup.py(+41 -0)📝
tools/buffer_bounds_probe.py(+4 -1)📝
tools/find_hash_lookup.py(+9 -1)📄 Description
Summary
ValueErrorwhen parsing--waves, so--waves 32,abcfollows the existing bad-argument path and exits 2Item: TEST-BUFFER-BOUNDS-WAVES-ARG
This carries forward the still-uncarried fix in old-pr/9807, originally written by nino-exe, reapplied and verified on current main.
Tests
Under the local machine coordination lock:
origin/main:python -I buffer_bounds_probe.py --waves 32,abcexits 1 withValueErrortracebackpython -I tests/test_buffer_bounds_probe.py— 6 tests, OKpython -m compileall -q tools/buffer_bounds_probe.py tests/test_buffer_bounds_probe.py— passgit diff --check— passNo game files or GPU.
AI-assisted with Devin.
Consolidated numeric-argument validation
This branch now also includes the small numeric CLI validation fix formerly opened as #2206:
find_hash_lookuprejects a negative--windowand a non-positive--top, and clamps truncated PE section sizes before scanning. The consolidation is cherry-picka33822ab2; no additional code was written. Both changes are small argument-validation fixes with independent regression tests.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.