test: bound zero-count RCX branch mutation scans #858
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!858
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/858/head"
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?
@R0Y00 on GitHub · 2026-11-23 14:06 UTC · original
R0Y00:codex/bound-rcx-branch-mutants→main· +5 −4 · 1 files · 1 commits · merged 2026-11-23 14:18 UTCThe zero-count guard mutation can enter LOOPNE with RCX=0. The counter wraps and the scan needs to find its needle in the input bytes. The old tail only supplied zero, so the mutant could read past its source buffer and fail with an access violation instead of a comparison mismatch.
Add every tested needle to the tail. The original 7,712 native/translated comparisons and all three negative controls remain. Both commands passed locally on Windows x64:
ctest --preset dev --no-tests=error -R '^cpu_aot_rcx_branches$' -Vctest --preset release --no-tests=error -R '^cpu_aot_rcx_branches$' -VThe controls caught 3,836 noecx, 4,432 nozf and 7,056 jrcxz mismatches in each build. The intermittent failure surfaced during the Windows rerun for #602.