Skip to content

test: /proc maps parser property tests + cargo-fuzz target; name PTRACE_GET_SYSCALL_INFO - #19

Merged
grloper merged 1 commit into
mainfrom
test/maps-parser-fuzz
Oct 9, 2026
Merged

grloper merged 1 commit into
mainfrom
test/maps-parser-fuzz

Conversation

@grloper

@grloper grloper commented Oct 9, 2026

Copy link
Copy Markdown
Owner
  • tests/maps_robustness.rs: dependency-free deterministic property tests (arbitrary bytes and mutated maps lines never panic; regions sorted; lookups never panic; well-formed example parses). Runs in normal cargo test.
  • fuzz/: cargo-fuzz target maps_parse (separate workspace, no changes to main dependencies/Cargo.lock/MSRV).
  • src/tracer.rs: magic 0x420e replaced by named const PTRACE_GET_SYSCALL_INFO (same value, as _ keeps the libc request type); unit test asserts equality with libc::PTRACE_GET_SYSCALL_INFO on gnu targets.

Ran locally (rustc 1.99): cargo build --release --locked, cargo test --locked (88 unit + all integration pass, 3 new robustness tests), cargo fmt --check, cargo clippy --all-targets --locked -D warnings, scripts/check_docs.py.
NOT run: the fuzz target itself (box has no C++ compiler/nightly+cargo-fuzz); MSRV 1.74 (left to CI).

@grloper
grloper merged commit 7d4eb2f into main Oct 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant