mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #2206] [CLOSED] find_hash_lookup: validate scan window and result limit #2210
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#2210
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/2206
Author: @whoalin1
Created: 11/26/2026
Status: ❌ Closed
Base:
main← Head:hashlookup-args-validation📝 Commits (1)
965d91bfind_hash_lookup: validate scan window and result limit📊 Changes
2 files changed (+50 additions, -1 deletions)
View changed files
📝
tests/test_find_hash_lookup.py(+41 -0)📝
tools/find_hash_lookup.py(+9 -1)📄 Description
Summary
--windowand a non-positive--topwithValueError, which the CLI already turns into a clean exit-2 errorrank()validation, CLI exit behavior, zero-window behavior and truncated raw sectionsItem: TEST-FIND-HASH-LOOKUP-ARGS
This carries forward the still-uncarried fix in old-pr/9792, originally written by abnalstlll-byte, reapplied and verified on current main.
Tests
Under the local machine coordination lock:
windowand non-positivetopare accepted, bad CLI arguments do not produce the intended exit-2 error, and the raw-section size is not clampedpython -I tests/test_find_hash_lookup.py— 10 tests, OKpython -m compileall -q tools/find_hash_lookup.py tests/test_find_hash_lookup.py— passgit diff --check— passNo game files or GPU.
AI-assisted with Devin.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.