[codex] Match GetValidTicketIndex #4

Merged
coah80 merged 1 commits from codex/get-valid-ticket-index-43u-20260921-worker5 into main 2026-09-21 19:27:39 +00:00
coah80 commented 2026-09-21 19:04:41 +00:00 (Migrated from github.com)

What changed

Matched ipl::utility::ESMisc::GetValidTicketIndex in src/utility/iplESMisc.cpp.

The source changes preserve the target instruction count and reproduce the original register allocation, unsigned read-length comparison, signed byte test, and allocation alignment.

Validation

  • Exact-name objdiff fuzzy_match_percent: 98.901640 baseline -> 100.000000 candidate
  • ctxdiff: 183/183 instructions, diffs 0
  • 43U full build passed
  • DOL SHA-1 remains 26116613f624061ba99c8d1a299aaa6efa85670d
  • git diff --check passed

pool_diff.py was run before ctxdiff.py. It still reports the pre-existing first translation-unit divergence at string-pool index 83, after this function's block, so no out-of-scope function was changed.

Note

Fix buffer alignment and read-count type in ESMisc::GetValidTicketIndex

Corrects the temporary content-file buffer in GetValidTicketIndex to use char* with alignment -32 instead of unsigned char* with alignment 32. Also stores the read count as an unsigned 32-bit value before the existing length check.

Macroscope summarized ebdac5a.

## What changed Matched `ipl::utility::ESMisc::GetValidTicketIndex` in `src/utility/iplESMisc.cpp`. The source changes preserve the target instruction count and reproduce the original register allocation, unsigned read-length comparison, signed byte test, and allocation alignment. ## Validation - Exact-name `objdiff` `fuzzy_match_percent`: `98.901640` baseline -> `100.000000` candidate - `ctxdiff`: `183/183` instructions, `diffs 0` - 43U full build passed - DOL SHA-1 remains `26116613f624061ba99c8d1a299aaa6efa85670d` - `git diff --check` passed `pool_diff.py` was run before `ctxdiff.py`. It still reports the pre-existing first translation-unit divergence at string-pool index 83, after this function's block, so no out-of-scope function was changed. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Fix buffer alignment and read-count type in `ESMisc::GetValidTicketIndex` > Corrects the temporary content-file buffer in `GetValidTicketIndex` to use `char*` with alignment `-32` instead of `unsigned char*` with alignment `32`. Also stores the read count as an unsigned 32-bit value before the existing length check. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized ebdac5a.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.