fix(libc): read swscanf floating fields as titles' libc.prx does #12514

Merged
JJenkx merged 4 commits from upstream-pr/12514 into main 2026-11-10 00:56:43 +00:00
JJenkx commented 2026-10-28 16:45:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-28T16:45:18Z.


What

The wide scanner's floating conversions (swscanf, and the wide stream scanners that share it) differ from titles' own libc.prx in three ways. PPSA07923 and PPSA05916 agree on every row.

1. ERANGE. The titles set it only when a decimal field overflows or underflows to zero as a long double, whatever the destination width. A hexadecimal field never sets it, and neither does a subnormal long double. #9973 (mine) restored errno for every float and double conversion, which is right below the long double limits but not beyond them:

input %f / %lf %Lf before this PR
1e39, 1e400, 1e4932 errno unchanged unchanged same
1.2e4932, 1e5000, -1e5000 ERANGE ERANGE %f/%lf left errno alone
1e-4952, 1e-5000 ERANGE ERANGE same
1e-4940, 3e-4951 (subnormal long double) unchanged unchanged %Lf set the host's ERANGE
0x1p16384, 0x1p-16446, 0x1p99999 unchanged unchanged %Lf set ERANGE

2. NaN. Every NaN, -nan and -NaN(123) included, is stored as the default quiet NaN (0x7fc00000, 0x7ff8000000000000, and the default long double NaN). The scanner kept the sign and the payload.

3. %Lf width. The titles write the 10 bytes of the value and leave the other 6 of the 16 untouched. The scanner wrote all 16, and for inf/nan the padding wasn't even zero.

Float now converts the field with strtold once to decide ERANGE (decimal fields only, and only for a result of ±inf or 0). It replaces a NaN result with the default quiet NaN and copies 10 bytes for %Lf. Values are otherwise unchanged. The debt entry now states the narrow-sscanf gap that remains on Windows: %f and hexadecimal %a set the host's ERANGE. #9973's old wording (%e, %lf) didn't match Windows.

Tested

Current-main integration — 2026-11-04. Head 1da5a8eca8be1c0029a99e49398c2db26f6558c4 includes main b11c7bf84f5d2f636ff60166cc3371bd071e24d5 and preserves previous public commits and attribution/licence notices. Keeps the measured floating-field/errno/10-byte long-double-store behavior alongside main’s now-merged #9863 short-field implementation and fixtures. The previously unanswered #9863 author question remains historical; its actual merge fulfills that prerequisite without asserting author agreement. The existing agreed #9087-first order remains.

Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. guest_wide_conversion, guest_wide_stream_scan, guest_stdio_variadic, guest_formatting, guest_scan_count each pass 3/3 (15 runtime passes, zero skips); public_headers, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs.

Source/parent/gitlink proofs, library/test hashes, raw logs/JUnit and head-leased push receipts: qualification archive, SHA-256 7c347f620951ad6f39068740750949212c6412815da094a46a96eca1d15c8bbf (download verified). Older platform, stress, negative-control and reference reports retain their original pins; no new Windows/macOS, full-suite, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex).

Earlier dated qualifications below retain their original source/platform pins.

Latest Linux qualification (2026-11-02): exact head 949740512f65dc7439b0bacb25cccf2518c4fd25 on pinned main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. Production and tests equal the automatic current-main integration. Debt retains main’s corrected _WStoul behavior and the PR’s measured floating-range/errno/NaN and 10-byte long-double store qualifications.

5 focused groups repeated three times: 15 passes, zero skips. Public headers, conventions, whitespace, raw libc/test builds and the actual production NID-patching command passed. MinGW syntax passed for ScanningWide.cpp. No new Windows/macOS runtime, bundled-SDK reference, native title, GPU or performance claim; earlier evidence retains its historical pins.

Earlier pinned qualifications follow.

Earlier Linux integration at ccdd878bd9184e5031ddf1108c9d7044821ebeb9: merged main bc3e33f4e334996ab9ba5cbf8544942465be18f3 and rebuilt the actual libc plus guest_wide_conversion, guest_wide_stream_scan, guest_stdio_variadic, guest_formatting, guest_scan_count. Each suite passes three consecutive executions (15 passes, zero skips). Conventions and diff checks pass. #11341 is now merged and no longer a pending prerequisite; the #9863 author-order question was unanswered at that qualification; its later merge fulfilled the proposed order without an author agreement being claimed. Published by a normal fast-forward, retaining the previous public head as an ancestor. The latest-main ba5b5330b3 merge preview is also clean; the executed build remains pinned to bc3e33f4e3. Earlier Windows/title-reference measurements below retain their original pins; this is not a new Windows or SDK-oracle run.

Raw integrated-source proof, test/JUnit logs and commands, SHA-256 9ce7f31df10b0764765447028e834a947dadf6c060b90e5db4447b39afcb3203 (download verified). AI-assisted: yes (Codex).

Earlier qualification at the original pins:

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON, on main 6793a72475.

  • Against titles' own libc.prx: I loaded PPSA07923's and PPSA05916's libc.prx natively and called their swscanf (HNnWdT43ues) side by side with this build. I compared the result, all 16 bytes of the destination, %n and errno:

    set main this branch
    200,000 random numeric conversions (d i u o x X f e g a, every length, random widths and inputs) 9,205 differences 0
    60 range-boundary cases (the table above, ×3 widths) 0
    15 NaN, infinity and -0 cases 0

    The same on both titles.

  • Tests: guest_wide_conversion (new checks for the boundaries, hexadecimal, subnormal, NaN and the 10-byte store), guest_wide_stream_scan and guest_stdio_variadic pass in each of 3 runs. #9973's existing rows (1e39, 1e400, 1e-400, 1e-50, 1e-5000) are unchanged.

  • Negative control: with main's ScanningWide.cpp, guest_wide_conversion fails.

Not tested on Linux or macOS. On Linux, glibc's strtold sets ERANGE for subnormal results, which the zero/infinity test filters out as it does here.

Overlap: tools/pr_overlap.py reports:

  • #11341 (SteelCrab), now merged: changed the same %Lf store line to GuestLongDoubleStore(target, strtold(...)) for its Emscripten build. The current integration retains that helper through an aligned temporary followed by a 10-byte copy;
  • #9087 and #9863: each edits a neighbouring line of docs/dev/debt/libc.md. The earlier overlaps with #12060 and #12420 are fulfilled history; both have merged.

Merge order

The remaining open prerequisite is #9087, whose author agreed it lands first. #9863 has now merged and its short-field implementation and fixtures are retained in this integration; its earlier author-order question was unanswered, and no agreement is invented. #11341, #12060, #12420 and #10729 are also merged. The aligned long-double temporary and copy of only its 10 value bytes remain. Original requests remain historical: #11341, #9087, #9863, #10729, and #12060. Earlier agreements with #10729 and #12060 are fulfilled history.

Earlier qualification — 2026-10-30

Integrated upstream main 08a10d225306ad102b57408e2ef7566bcfb829b2 at cb8b5a67e7613d42e6b2b666974960bb587e938d, retaining the actual previous head and main as parents. Manual conflict resolution changes only debt documentation; production and test files equal the automatic merge output. Both parents' added test lines and main gitlinks are preserved.

Linux CPU: 9 passes (guest_wide_conversion, guest_scan_count, guest_stdio_variadic); public_headers 1 passes; no skips. MinGW source syntax and conventions pass.

No new Windows/macOS runtime, native SDK, game, GPU or performance claim. The Windows user pause was in force for that earlier qualification; the resumed native Windows results below supersede that limitation.

Evidence: immutable source and qualification receipts, SHA-256 61f5500e7526ea4e107159927de78c37db7e0ac1cb7ebd8625b22ab0ad5d9bd7 (download verified).

Qualification update — 2026-10-30, repeat 2

New current-main integration at ece2c7c6b9ebe8c52c4d1e863f715e52ca7048e0 on main 51c31ea17e9f66cb36fe9655ec31c81610bfcfc9 preserves previous qualified public 9140 head as a parent. The new main GuestLongDoubleStore writes 16 bytes; scanning now calls it into alignas(long double) 16-byte local storage and copies only 10 bytes into the caller. Single parse, errno/range rules, defaultNaN normalization and caller tail bytes remain. All other source, tests and public declarations equal the automatic merge.

Three focused Linux groups passed 3 positive + 3 restored repeats (18 passes), public_headers passed, zero skips. Direct-to-caller helper mutant fails existing "swscanf stores ten bytes for %Lf" tail guard. Restored libc SHA256 matches positive binary. MinGW syntax passes; GNU -mlong-double-128 syntax passes only. No ARM/113-bit-host runtime, eight-byte ABI, console/nativeSDK/game/GPU claim. Windows worker owns separate 9-run exact-head qualification;9140 evidence stays historical.

Evidence: immutable qualification receipts, SHA-256 d8c837dd732aca9b0f5fa8dac5861da2b65e13c51e2506bb09264a671371f394 (download verified).

Earlier six-branch integration evidence at the original 9140c5c pin remains historical: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/cpu-six-maine471-linux-20261030-repeat2.tar.gz (SHA-256 0e170ba60a93a8b65f4dac8050f68833249b80b5ef519f05d38340700cedeb5b).

Actual Windows follow-up at exact latest public ece2c7c6b9ebe8c52c4d1e863f715e52ca7048e0, integrating main 51c31ea: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2 UCRT r7, Ninja Release, BUILD_TESTING=ON. Rebuilt patched libc and the three focused test executables. guest_wide_conversion, guest_scan_count and guest_stdio_variadic each pass three times: 9/9, 0 skips. The current wide conversion group includes the existing guard that %Lf writes only ten caller bytes.

This directly tests the new composition with main's 16-byte GuestLongDoubleStore helper: the branch uses an aligned local and copies ten bytes into the caller. The prior Windows result at 9140c5c remains historical. The Linux direct-to-caller mutant evidence remains Linux evidence and is not claimed as a Windows rerun. Complete Windows FIFO request a35fc9f01ade4839ab4c63241df66ddc; no source/test mutation, SDK/game/GPU/performance/console or macOS claim.

Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12514-main51c-windows-20261030.tar.gz, SHA256 1b575ea145355e74502723edbc591e5cce19575d599e97a8927e751c6245d482. AI-assisted: yes (Codex).

AI-assisted: yes (Codex).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #9087 (agreed to land first); #9863, #11341, #12060, #12420 and #10729 are merged and fulfilled
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5054232499 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12514). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-28T16:45:18Z. --- ### What The wide scanner's floating conversions (`swscanf`, and the wide stream scanners that share it) differ from titles' own `libc.prx` in three ways. PPSA07923 and PPSA05916 agree on every row. **1. `ERANGE`.** The titles set it only when a decimal field overflows or underflows to zero *as a `long double`*, whatever the destination width. A hexadecimal field never sets it, and neither does a subnormal `long double`. #9973 (mine) restored `errno` for every `float` and `double` conversion, which is right below the `long double` limits but not beyond them: | input | `%f` / `%lf` | `%Lf` | before this PR | |---|---|---|---| | `1e39`, `1e400`, `1e4932` | `errno` unchanged | unchanged | same | | `1.2e4932`, `1e5000`, `-1e5000` | **`ERANGE`** | `ERANGE` | `%f`/`%lf` left `errno` alone | | `1e-4952`, `1e-5000` | **`ERANGE`** | `ERANGE` | same | | `1e-4940`, `3e-4951` (subnormal `long double`) | unchanged | **unchanged** | `%Lf` set the host's `ERANGE` | | `0x1p16384`, `0x1p-16446`, `0x1p99999` | unchanged | **unchanged** | `%Lf` set `ERANGE` | **2. NaN.** Every NaN, `-nan` and `-NaN(123)` included, is stored as the default quiet NaN (`0x7fc00000`, `0x7ff8000000000000`, and the default `long double` NaN). The scanner kept the sign and the payload. **3. `%Lf` width.** The titles write the 10 bytes of the value and leave the other 6 of the 16 untouched. The scanner wrote all 16, and for `inf`/`nan` the padding wasn't even zero. `Float` now converts the field with `strtold` once to decide `ERANGE` (decimal fields only, and only for a result of `±inf` or `0`). It replaces a NaN result with the default quiet NaN and copies 10 bytes for `%Lf`. Values are otherwise unchanged. The debt entry now states the narrow-`sscanf` gap that remains on Windows: `%f` and hexadecimal `%a` set the host's `ERANGE`. #9973's old wording (`%e`, `%lf`) didn't match Windows. ### Tested **Current-main integration — 2026-11-04.** Head `1da5a8eca8be1c0029a99e49398c2db26f6558c4` includes main `b11c7bf84f5d2f636ff60166cc3371bd071e24d5` and preserves previous public commits and attribution/licence notices. Keeps the measured floating-field/errno/10-byte long-double-store behavior alongside main’s now-merged #9863 short-field implementation and fixtures. The previously unanswered #9863 author question remains historical; its actual merge fulfills that prerequisite without asserting author agreement. The existing agreed #9087-first order remains. Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. `guest_wide_conversion`, `guest_wide_stream_scan`, `guest_stdio_variadic`, `guest_formatting`, `guest_scan_count` each pass 3/3 (**15 runtime passes, zero skips**); `public_headers`, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs. Source/parent/gitlink proofs, library/test hashes, raw logs/JUnit and head-leased push receipts: [qualification archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-libc10-mainb11c-linux-20261104.tar.gz), SHA-256 `7c347f620951ad6f39068740750949212c6412815da094a46a96eca1d15c8bbf` (download verified). Older platform, stress, negative-control and reference reports retain their original pins; no new Windows/macOS, full-suite, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex). Earlier dated qualifications below retain their original source/platform pins. Latest Linux qualification (2026-11-02): exact head `949740512f65dc7439b0bacb25cccf2518c4fd25` on pinned main `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. Production and tests equal the automatic current-main integration. Debt retains main’s corrected _WStoul behavior and the PR’s measured floating-range/errno/NaN and 10-byte long-double store qualifications. 5 focused groups repeated three times: **15 passes, zero skips**. Public headers, conventions, whitespace, raw libc/test builds and the actual production NID-patching command passed. MinGW syntax passed for ScanningWide.cpp. No new Windows/macOS runtime, bundled-SDK reference, native title, GPU or performance claim; earlier evidence retains its historical pins. Earlier pinned qualifications follow. <!-- codex-current-main-qualification --> **Earlier Linux integration at `ccdd878bd9184e5031ddf1108c9d7044821ebeb9`:** merged main `bc3e33f4e334996ab9ba5cbf8544942465be18f3` and rebuilt the actual libc plus `guest_wide_conversion`, `guest_wide_stream_scan`, `guest_stdio_variadic`, `guest_formatting`, `guest_scan_count`. Each suite passes three consecutive executions (15 passes, zero skips). Conventions and diff checks pass. #11341 is now merged and no longer a pending prerequisite; the #9863 author-order question was unanswered at that qualification; its later merge fulfilled the proposed order without an author agreement being claimed. Published by a normal fast-forward, retaining the previous public head as an ancestor. The latest-main `ba5b5330b3` merge preview is also clean; the executed build remains pinned to `bc3e33f4e3`. Earlier Windows/title-reference measurements below retain their original pins; this is not a new Windows or SDK-oracle run. [Raw integrated-source proof, test/JUnit logs and commands](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12514-current-main-linux-20261029.tar.gz), SHA-256 `9ce7f31df10b0764765447028e834a947dadf6c060b90e5db4447b39afcb3203` (download verified). AI-assisted: yes (Codex). **Earlier qualification at the original pins:** <!-- /codex-current-main-qualification --> Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, `BUILD_TESTING=ON`, on `main` `6793a72475`. - **Against titles' own `libc.prx`:** I loaded PPSA07923's and PPSA05916's `libc.prx` natively and called their `swscanf` (`HNnWdT43ues`) side by side with this build. I compared the result, all 16 bytes of the destination, `%n` and `errno`: | set | `main` | this branch | |---|---|---| | 200,000 random numeric conversions (`d i u o x X f e g a`, every length, random widths and inputs) | 9,205 differences | **0** | | 60 range-boundary cases (the table above, `×3` widths) | | **0** | | 15 NaN, infinity and `-0` cases | | **0** | The same on both titles. - **Tests:** `guest_wide_conversion` (new checks for the boundaries, hexadecimal, subnormal, NaN and the 10-byte store), `guest_wide_stream_scan` and `guest_stdio_variadic` pass in each of 3 runs. #9973's existing rows (`1e39`, `1e400`, `1e-400`, `1e-50`, `1e-5000`) are unchanged. - **Negative control:** with `main`'s `ScanningWide.cpp`, `guest_wide_conversion` fails. Not tested on Linux or macOS. On Linux, glibc's `strtold` sets `ERANGE` for subnormal results, which the zero/infinity test filters out as it does here. **Overlap:** `tools/pr_overlap.py` reports: - **#11341** (SteelCrab), now merged: changed the same `%Lf` store line to `GuestLongDoubleStore(target, strtold(...))` for its Emscripten build. The current integration retains that helper through an aligned temporary followed by a 10-byte copy; - **#9087 and #9863:** each edits a neighbouring line of `docs/dev/debt/libc.md`. The earlier overlaps with #12060 and #12420 are fulfilled history; both have merged. ### Merge order The remaining open prerequisite is #9087, whose author [agreed it lands first](https://github.com/boykopovar/AnyPS5/pull/9087#issuecomment-6477132013). #9863 has now merged and its short-field implementation and fixtures are retained in this integration; its earlier author-order question was unanswered, and no agreement is invented. #11341, #12060, #12420 and #10729 are also merged. The aligned long-double temporary and copy of only its 10 value bytes remain. Original requests remain historical: [#11341](https://github.com/boykopovar/AnyPS5/pull/11341#issuecomment-6476895863), [#9087](https://github.com/boykopovar/AnyPS5/pull/9087#issuecomment-6476896447), [#9863](https://github.com/boykopovar/AnyPS5/pull/9863#issuecomment-6476897683), [#10729](https://github.com/boykopovar/AnyPS5/pull/10729#issuecomment-6476899029), and [#12060](https://github.com/boykopovar/AnyPS5/pull/12060#issuecomment-6476900286). Earlier agreements with #10729 and #12060 are fulfilled history. <!-- codex-maintenance-20261030-repeat-12514 --> **Earlier qualification — 2026-10-30** Integrated upstream main `08a10d225306ad102b57408e2ef7566bcfb829b2` at `cb8b5a67e7613d42e6b2b666974960bb587e938d`, retaining the actual previous head and main as parents. Manual conflict resolution changes only debt documentation; production and test files equal the automatic merge output. Both parents' added test lines and main gitlinks are preserved. Linux CPU: 9 passes (guest_wide_conversion, guest_scan_count, guest_stdio_variadic); public_headers 1 passes; no skips. MinGW source syntax and conventions pass. No new Windows/macOS runtime, native SDK, game, GPU or performance claim. The Windows user pause was in force for that earlier qualification; the resumed native Windows results below supersede that limitation. Evidence: [immutable source and qualification receipts](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/cpu-seven-current-main-linux-20261030.tar.gz), SHA-256 `61f5500e7526ea4e107159927de78c37db7e0ac1cb7ebd8625b22ab0ad5d9bd7` (download verified). <!-- codex-maintenance-20261030-repeat2-12514 --> **Qualification update — 2026-10-30, repeat 2** New current-main integration at `ece2c7c6b9ebe8c52c4d1e863f715e52ca7048e0` on main `51c31ea17e9f66cb36fe9655ec31c81610bfcfc9` preserves previous qualified public 9140 head as a parent. The new main GuestLongDoubleStore writes 16 bytes; scanning now calls it into alignas(long double) 16-byte local storage and copies only 10 bytes into the caller. Single parse, errno/range rules, defaultNaN normalization and caller tail bytes remain. All other source, tests and public declarations equal the automatic merge. Three focused Linux groups passed 3 positive + 3 restored repeats (18 passes), public_headers passed, zero skips. Direct-to-caller helper mutant fails existing "swscanf stores ten bytes for %Lf" tail guard. Restored libc SHA256 matches positive binary. MinGW syntax passes; GNU -mlong-double-128 syntax passes only. No ARM/113-bit-host runtime, eight-byte ABI, console/nativeSDK/game/GPU claim. Windows worker owns separate 9-run exact-head qualification;9140 evidence stays historical. Evidence: [immutable qualification receipts](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12514-guest-long-double-codec-main51-linux-20261030.tar.gz), SHA-256 `d8c837dd732aca9b0f5fa8dac5861da2b65e13c51e2506bb09264a671371f394` (download verified). Earlier six-branch integration evidence at the original `9140c5c` pin remains historical: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/cpu-six-maine471-linux-20261030-repeat2.tar.gz (SHA-256 `0e170ba60a93a8b65f4dac8050f68833249b80b5ef519f05d38340700cedeb5b`). Actual Windows follow-up at exact latest public `ece2c7c6b9ebe8c52c4d1e863f715e52ca7048e0`, integrating main `51c31ea`: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2 UCRT r7, Ninja Release, BUILD_TESTING=ON. Rebuilt patched libc and the three focused test executables. guest_wide_conversion, guest_scan_count and guest_stdio_variadic each pass three times: 9/9, 0 skips. The current wide conversion group includes the existing guard that %Lf writes only ten caller bytes. This directly tests the new composition with main's 16-byte GuestLongDoubleStore helper: the branch uses an aligned local and copies ten bytes into the caller. The prior Windows result at `9140c5c` remains historical. The Linux direct-to-caller mutant evidence remains Linux evidence and is not claimed as a Windows rerun. Complete Windows FIFO request a35fc9f01ade4839ab4c63241df66ddc; no source/test mutation, SDK/game/GPU/performance/console or macOS claim. Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12514-main51c-windows-20261030.tar.gz, SHA256 1b575ea145355e74502723edbc591e5cce19575d599e97a8927e751c6245d482. AI-assisted: yes (Codex). AI-assisted: yes (Codex). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9087 (agreed to land first); #9863, #11341, #12060, #12420 and #10729 are merged and fulfilled - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-28 16:55:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T16:55:04Z.

Review: CHANGES_REQUESTED


The floating conversion change and its focused cases look plausible, but the required overlap coordination is still missing. I compared the current PR head with the open heads of #11341, #9087, #9863, #10729, #12060 and #12420 using git merge-tree. The combined trees conflict in core/libs/prx/libc/src/ScanningWide.cpp for #11341 and in docs/dev/debt/libc.md for each of the six PRs. The PR body currently says Depends on: none; CONTRIBUTING.md requires the authors to agree which overlapping PR lands first and declare the dependency. Please coordinate that order with the affected authors and update the checklist (including any rebasing needed). I will reassess after the overlap is resolved. Current hosted Windows, Ubuntu relinker, Ubuntu register-context, ASan, conventions and policy checks pass; macOS relinker/register-context/write-watch checks are still pending, and Linux is skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686492709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12514#pullrequestreview-5686492709). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T16:55:04Z. **Review:** CHANGES_REQUESTED --- The floating conversion change and its focused cases look plausible, but the required overlap coordination is still missing. I compared the current PR head with the open heads of #11341, #9087, #9863, #10729, #12060 and #12420 using `git merge-tree`. The combined trees conflict in `core/libs/prx/libc/src/ScanningWide.cpp` for #11341 and in `docs/dev/debt/libc.md` for each of the six PRs. The PR body currently says `Depends on: none`; CONTRIBUTING.md requires the authors to agree which overlapping PR lands first and declare the dependency. Please coordinate that order with the affected authors and update the checklist (including any rebasing needed). I will reassess after the overlap is resolved. Current hosted Windows, Ubuntu relinker, Ubuntu register-context, ASan, conventions and policy checks pass; macOS relinker/register-context/write-watch checks are still pending, and Linux is skipped.
MarcZX10 commented 2026-10-29 10:24:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T10:24:22Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The Linux guest_wide_conversion rerun and the Windows comparison with #12420 add useful evidence for the floating-scan behavior. I checked the exact head 046d6598004971d26dedb689b3a4af7baa92a4c6 against current main f99d7fece316e31878f0195f8bbc2ad2fbe635e4.

What I checked

  • git merge-tree --write-tree produces a clean current-main merge preview (2b966b4fabad2859ae68c9a03817526ad5af4d06).
  • git diff --check passes.
  • python3 tools/check_conventions.py --base refs/review/live-main --head refs/review/upstream-12514 passes.
  • The Windows multi-PR integration report and Linux focused test are on older bases (319621ba2e and 6793a72475 respectively), not this current-main merge preview. I did not run the scanner tests locally.

Still blocking

  1. Please rerun the focused scanner tests (including guest_wide_conversion, guest_wide_stream_scan, and guest_stdio_variadic) on the current-main merge result, or rebase/merge current main and report the exact tested head. A clean merge preview alone does not validate the integrated behavior.
  2. The declared order with #11341 and #9863 is still awaiting those authors' explicit agreement in the visible threads. #11341 overlaps the %Lf store in ScanningWide.cpp; #9863 overlaps the libc debt entry. Please record both agreements before treating the full overlap order as settled.

The reported title-binary comparison is valuable, but it does not replace these current-integration and contribution-coordination checks. I will reassess after they are addressed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696175842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12514#pullrequestreview-5696175842). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T10:24:22Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested The Linux `guest_wide_conversion` rerun and the Windows comparison with #12420 add useful evidence for the floating-scan behavior. I checked the exact head `046d6598004971d26dedb689b3a4af7baa92a4c6` against current `main` `f99d7fece316e31878f0195f8bbc2ad2fbe635e4`. ## What I checked - `git merge-tree --write-tree` produces a clean current-main merge preview (`2b966b4fabad2859ae68c9a03817526ad5af4d06`). - `git diff --check` passes. - `python3 tools/check_conventions.py --base refs/review/live-main --head refs/review/upstream-12514` passes. - The Windows multi-PR integration report and Linux focused test are on older bases (`319621ba2e` and `6793a72475` respectively), not this current-main merge preview. I did not run the scanner tests locally. ## Still blocking 1. Please rerun the focused scanner tests (including `guest_wide_conversion`, `guest_wide_stream_scan`, and `guest_stdio_variadic`) on the current-main merge result, or rebase/merge current `main` and report the exact tested head. A clean merge preview alone does not validate the integrated behavior. 2. The declared order with #11341 and #9863 is still awaiting those authors' explicit agreement in the visible threads. #11341 overlaps the `%Lf` store in `ScanningWide.cpp`; #9863 overlaps the libc debt entry. Please record both agreements before treating the full overlap order as settled. The reported title-binary comparison is valuable, but it does not replace these current-integration and contribution-coordination checks. I will reassess after they are addressed.
MarcZX10 commented 2026-10-29 11:12:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T11:12:33Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The update supplies the requested Linux results on the bc3e33f4e3 integration (five focused suites, three repetitions each) and reports a clean merge preview against current main ba5b5330b3. Since the files changed by this PR have no intervening current-main edits, I accept that as relevant test evidence under the merge-preview approach we discussed.

The blocking overlap-order item remains: the author-order questions for #11341 and #9863 are still unanswered, and the update explicitly says no agreement is claimed. Please get both authors' agreement and record the same order in the applicable Depends on checklists. I am keeping changes requested until that coordination is explicit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696757224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12514#pullrequestreview-5696757224). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T11:12:33Z. **Review:** CHANGES_REQUESTED --- ## Re-checked — changes requested The update supplies the requested Linux results on the `bc3e33f4e3` integration (five focused suites, three repetitions each) and reports a clean merge preview against current `main` `ba5b5330b3`. Since the files changed by this PR have no intervening current-main edits, I accept that as relevant test evidence under the merge-preview approach we discussed. The blocking overlap-order item remains: the author-order questions for #11341 and #9863 are still unanswered, and the update explicitly says no agreement is claimed. Please get both authors' agreement and record the same order in the applicable `Depends on` checklists. I am keeping changes requested until that coordination is explicit.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12514
No description provided.