test: bound zero-count RCX branch mutation scans #858

Manually merged
github merged 1 commit from gh-pr/858/head into gh-pr/858/base 2026-11-26 22:24:01 +00:00
Owner

@⁠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 UTC

The 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$' -V
  • ctest --preset release --no-tests=error -R '^cpu_aot_rcx_branches$' -V

The 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.

**@⁠R0Y00** on GitHub · 2026-11-23 14:06 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/858) `R0Y00:codex/bound-rcx-branch-mutants` → `main` · +5 −4 · 1 files · 1 commits · merged 2026-11-23 14:18 UTC The 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$' -V` - `ctest --preset release --no-tests=error -R '^cpu_aot_rcx_branches$' -V` The 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:23:59 +00:00
github manually merged commit 11a233b797 into gh-pr/858/base 2026-11-26 22:24:01 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.