Reject non-ASCII checksum records without slicing inside a UTF-8 character
Problem
release_assets splits a checksum line at byte 64 before checking ASCII hexadecimal syntax. Valid UTF-8 with a multibyte character crossing that offset panics instead of returning a validation error.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
Prepare disposable checksum-matching assets with the nine archive names expected by cases.toml, version 0.0.1-alpha-dev. Replace one .sha256 record with 63 ASCII a characters followed by 한 and a filename. Run:
target/debug/wave-tools check release-assets --directory assets --version 0.0.1-alpha-dev
Observed: exit 101, split_at UTF-8 boundary panic. No package was executed or published.
Scope
Validate the byte-level ASCII checksum field before safe field separation.
Starting points: tools/src/checks.rs:140.
Completion criteria
- [ ] Non-ASCII, short, invalid-hex and malformed filename records return ordinary errors.
- [ ] Valid checksum records still pass.
- [ ] A small file-based regression covers a multibyte character crossing byte 64.
This is a bounded newcomer task with the starting point and focused negative/positive checks above.
Related: #820, #1000. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.