Repository navigation
Conversation
Require ASCII hex digits on the byte slice; avoid UTF-8 char-boundary panics and reject signed forms like %+1. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tested on an RTX 5080, release build: pass, 678 passed, 0 failed. This adds the whole suite to the unit test in the description.
Not tested
AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2) |
|
Test run of Tested
Review: Duplicate of #448 (open), and #325 has had other PRs too: all decode Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
Summary
%XXescapes from bytes withis_ascii_hexdigit, never by slicing&strindices (XGameSave: a save file name with a non-ASCII character after '%' panics in an extern "system" call #325).%+1(left literal).%a+é,%+1, andenc/decround-trip.Fixes #325
Test plan
cargo test -p xcl --lib hle::xgameruntime::gamesave::tests::dec_handles