feat(libSceLibcInternal): implement num_get pointer parsing #24723

Merged
paulk161 merged 6 commits from upstream-pr/24723 into main 2026-12-04 06:16:55 +00:00
paulk161 commented 2026-11-21 00:18:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by paulk161 on 2026-11-21T00:18:56Z.


What

Implement classic libSceLibcInternal num_get<char> pointer extraction (get/do_get for void*, NID my9ujasm6-0 through the facet vtable).

The field is always parsed as hexadecimal, independent of the stream's basefield, with an optional 0x/0X prefix, following the existing std::__sce_v2 pointer extraction. A conversion failure or a value above uintptr_t stores a null pointer and sets failbit; bad grouping keeps the value and sets failbit; reaching the end adds eofbit. Guest errno is preserved.

The technical-debt fragment now records pointer extraction as implemented. This edits the same debt sentence as #24520 (bool extraction); whichever lands second only needs that sentence rebased.

Tested

Windows 11, MSYS2 UCRT64:

  • built guest_libc_internal_num_get_tests and guest_libc_internal_num_get_do_get_tests
  • ran guest_libc_internal_num_get and guest_libc_internal_num_get_do_get
  • new cases go through the exported get and a facet from num_get<char>::_Getcat: hexadecimal under a decimal stream, 0x prefix stopping before trailing text, no digits, a bare prefix, and overflow above uintptr_t
  • git diff --check, tools/debt_fold.py --check
  • tools/pr_overlap.py: no overlap with open pull requests

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Pointer values can now be read from hexadecimal input, with or without an optional 0x prefix. Parsing works regardless of the stream’s base setting and stops at trailing text.
    • Invalid, incomplete, or out-of-range pointer input produces a null pointer and marks the stream as failed. Invalid digit grouping marks the stream as failed while retaining the converted pointer. Exhausting the input also marks the stream as reaching end-of-file.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5422260216 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723). Originally posted by [paulk161](https://github.com/paulk161) on 2026-11-21T00:18:56Z. --- ### What Implement classic `libSceLibcInternal` `num_get<char>` pointer extraction (`get`/`do_get` for `void*`, NID `my9ujasm6-0` through the facet vtable). The field is always parsed as hexadecimal, independent of the stream's basefield, with an optional `0x`/`0X` prefix, following the existing `std::__sce_v2` pointer extraction. A conversion failure or a value above `uintptr_t` stores a null pointer and sets `failbit`; bad grouping keeps the value and sets `failbit`; reaching the end adds `eofbit`. Guest `errno` is preserved. The technical-debt fragment now records pointer extraction as implemented. This edits the same debt sentence as #24520 (bool extraction); whichever lands second only needs that sentence rebased. ### Tested Windows 11, MSYS2 UCRT64: - built `guest_libc_internal_num_get_tests` and `guest_libc_internal_num_get_do_get_tests` - ran `guest_libc_internal_num_get` and `guest_libc_internal_num_get_do_get` - new cases go through the exported `get` and a facet from `num_get<char>::_Getcat`: hexadecimal under a decimal stream, `0x` prefix stopping before trailing text, no digits, a bare prefix, and overflow above `uintptr_t` - `git diff --check`, `tools/debt_fold.py --check` - `tools/pr_overlap.py`: no overlap with open pull requests ### Checklist - [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 and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Pointer values can now be read from hexadecimal input, with or without an optional `0x` prefix. Parsing works regardless of the stream’s base setting and stops at trailing text. * Invalid, incomplete, or out-of-range pointer input produces a null pointer and marks the stream as failed. Invalid digit grouping marks the stream as failed while retaining the converted pointer. Exhausting the input also marks the stream as reaching end-of-file. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-21 00:42:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T00:42:30Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a237185a51:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_libc_internal_num_get_do_get_tests built cleanly.
  • CTest (guest_libc_internal_num_get_do_get):
    1/1 Test #4402: guest_libc_internal_num_get_do_get ...   Passed    0.10 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceLibcInternal/NumGet.cpp reverted to main and the new tests kept, the suite fails:
    1/1 Test #4402: guest_libc_internal_num_get_do_get ...Subprocess aborted***Exception:   0.36 sec
    0% tests passed, 1 tests failed out of 1
    
    Restoring the change makes it pass again.
  • Code reading:
    • NumGet.cpp: CharNumGetPointer validates stream, state, and value using ValidateNumGetArgs, throwing std::invalid_argument on null or missing locale
    • NumGet.cpp: stream basefield is masked out with ~IosBaseField and forced to IosHex via a local copy of IosBase without mutating the caller stream flags
    • NumGet.cpp: ParseIntField parses hexadecimal input, handling optional 0x/0X prefix, bad grouping, and invalid digits
    • NumGet.cpp: _Stoullx_nid_postfix correctly converts parsed digits to 64-bit unsigned int, preserving guest errno via __error_nid_postfix save and restore
    • NumGet.cpp: conversion failures, empty digits, and range errors set IosFailBit and write nullptr to *value, while bad grouping sets IosFailBit and preserves the parsed pointer
    • NumGet.cpp: InputEnded checks trailing input status and sets IosEofBit appropriately; guest iterator is properly converted and returned
    • docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md and test coverage in GuestLibcInternalNumGetDoGet.cpp verify behavior matches technical debt notes and test suite passing cleanly

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6001397524 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6001397524). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T00:42:30Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a237185a51`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_libc_internal_num_get_do_get_tests` built cleanly. - **CTest** (`guest_libc_internal_num_get_do_get`): ``` 1/1 Test #4402: guest_libc_internal_num_get_do_get ... Passed 0.10 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/NumGet.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/1 Test #4402: guest_libc_internal_num_get_do_get ...Subprocess aborted***Exception: 0.36 sec 0% tests passed, 1 tests failed out of 1 ``` Restoring the change makes it pass again. - **Code reading**: - NumGet.cpp: CharNumGetPointer validates stream, state, and value using ValidateNumGetArgs, throwing std::invalid_argument on null or missing locale - NumGet.cpp: stream basefield is masked out with ~IosBaseField and forced to IosHex via a local copy of IosBase without mutating the caller stream flags - NumGet.cpp: ParseIntField parses hexadecimal input, handling optional 0x/0X prefix, bad grouping, and invalid digits - NumGet.cpp: _Stoullx_nid_postfix correctly converts parsed digits to 64-bit unsigned int, preserving guest errno via __error_nid_postfix save and restore - NumGet.cpp: conversion failures, empty digits, and range errors set IosFailBit and write nullptr to *value, while bad grouping sets IosFailBit and preserves the parsed pointer - NumGet.cpp: InputEnded checks trailing input status and sets IosEofBit appropriately; guest iterator is properly converted and returned - docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md and test coverage in GuestLibcInternalNumGetDoGet.cpp verify behavior matches technical debt notes and test suite passing cleanly Looks Good To Me
MarcZX10 commented 2026-11-21 00:42:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T00:42:51Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; one optional test coverage point is listed below.

What I ran

Reviewed head a237185a51af2e6df0467d77e95d7a8c1149cce2 against main. No commands or tests were run; the prepared artifacts and source were inspected through repo_read.py.

Results

Check Result Note
Source review passed Changed code and targeted helpers inspected
Tests not run Author-reported Windows tests not independently run
Changed-line coverage passed All added lines in the three changed files inspected

Negative control

Not run; no test execution environment was available through the provided reader tools.

Findings

Blocking

None.

Non-blocking

  • The new cases cover basic hexadecimal parsing, failure, and overflow. Consider adding a regression case for bad grouping and verifying that the existing pointer value is retained while failbit is set, matching the stated behavior. The implementation follows the nearby integer parsing pattern for grouping failure. See NumGet.cpp at the reviewed head.

Sources

Not verified

The author-reported Windows 11/MSYS2 UCRT64 builds and runs, git diff --check, debt check, and overlap check were not independently verified. All three changed files were read at their changed lines and relevant helper/caller context. No changed files were excluded by the manifest; files.json was not available through the reader.

To get this to a good state

Nothing is required. Optional: add a bad-grouping test that checks both failbit and value retention.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6001401061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6001401061). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T00:42:51Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; one optional test coverage point is listed below. ## What I ran Reviewed head `a237185a51af2e6df0467d77e95d7a8c1149cce2` against `main`. No commands or tests were run; the prepared artifacts and source were inspected through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed code and targeted helpers inspected | | Tests | not run | Author-reported Windows tests not independently run | | Changed-line coverage | passed | All added lines in the three changed files inspected | ## Negative control Not run; no test execution environment was available through the provided reader tools. ## Findings ### Blocking None. ### Non-blocking - The new cases cover basic hexadecimal parsing, failure, and overflow. Consider adding a regression case for bad grouping and verifying that the existing pointer value is retained while `failbit` is set, matching the stated behavior. The implementation follows the nearby integer parsing pattern for grouping failure. See [NumGet.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/a237185a51af2e6df0467d77e95d7a8c1149cce2/core/libs/prx/libSceLibcInternal/NumGet.cpp#L727-L753). ## Sources - Pointer extraction implementation and vtable hookup: [NumGet.cpp, lines 727–769](https://github.com/boykopovar/AnyPS5/blob/a237185a51af2e6df0467d77e95d7a8c1149cce2/core/libs/prx/libSceLibcInternal/NumGet.cpp#L727-L769). - Pointer extraction tests: [GuestLibcInternalNumGetDoGet.cpp, lines 480–520](https://github.com/boykopovar/AnyPS5/blob/a237185a51af2e6df0467d77e95d7a8c1149cce2/core/libs/tests/GuestLibcInternalNumGetDoGet.cpp#L480-L520). ## Not verified The author-reported Windows 11/MSYS2 UCRT64 builds and runs, `git diff --check`, debt check, and overlap check were not independently verified. All three changed files were read at their changed lines and relevant helper/caller context. No changed files were excluded by the manifest; `files.json` was not available through the reader. ## To get this to a good state Nothing is required. Optional: add a bad-grouping test that checks both `failbit` and value retention.
PrivacyOnion commented 2026-11-21 06:25:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T06:25:45Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a36eb97506:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_libc_internal_num_get_do_get_tests built cleanly.
  • CTest (guest_libc_internal_num_get_do_get):
    1/1 Test #4420: guest_libc_internal_num_get_do_get ...   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceLibcInternal/NumGet.cpp reverted to main and the new tests kept, the suite fails:
    1/1 Test #4420: guest_libc_internal_num_get_do_get ...Subprocess aborted***Exception:   0.12 sec
    0% tests passed, 1 tests failed out of 1
    
    Restoring the change makes it pass again.
  • Code reading:
    • Verified CharNumGetPointer validates stream, state, and value pointers via ValidateNumGetArgs, throwing std::invalid_argument on null or missing locale
    • Verified stream basefield masking ((flags & ~IosBaseField) | IosHex) on a local copy leaves caller stream flags intact and correctly enforces hexadecimal parsing
    • Verified errno preservation across _Stoullx_nid_postfix using __error_nid_postfix save and restore
    • Verified error handling and state assignment: sets IosFailBit and nullptr on conversion/range errors or missing digits, preserves parsed pointer and sets IosFailBit on bad grouping, and updates IosEofBit via InputEnded
    • Verified technical debt fragment format in docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md and test coverage in GuestLibcInternalNumGetDoGet.cpp

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003491023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6003491023). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-21T06:25:45Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a36eb97506`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_libc_internal_num_get_do_get_tests` built cleanly. - **CTest** (`guest_libc_internal_num_get_do_get`): ``` 1/1 Test #4420: guest_libc_internal_num_get_do_get ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceLibcInternal/NumGet.cpp` reverted to `main` and the new tests kept, the suite fails: ``` 1/1 Test #4420: guest_libc_internal_num_get_do_get ...Subprocess aborted***Exception: 0.12 sec 0% tests passed, 1 tests failed out of 1 ``` Restoring the change makes it pass again. - **Code reading**: - Verified CharNumGetPointer validates stream, state, and value pointers via ValidateNumGetArgs, throwing std::invalid_argument on null or missing locale - Verified stream basefield masking ((flags & ~IosBaseField) | IosHex) on a local copy leaves caller stream flags intact and correctly enforces hexadecimal parsing - Verified errno preservation across _Stoullx_nid_postfix using __error_nid_postfix save and restore - Verified error handling and state assignment: sets IosFailBit and nullptr on conversion/range errors or missing digits, preserves parsed pointer and sets IosFailBit on bad grouping, and updates IosEofBit via InputEnded - Verified technical debt fragment format in docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md and test coverage in GuestLibcInternalNumGetDoGet.cpp Looks Good To Me
MarcZX10 commented 2026-11-21 06:27:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T06:27:49Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the implementation and tests cover the stated pointer parsing behavior, and the read code shows no verified defect.

What I ran

Reviewed head a36eb975060729043d939740549c5d58c093b738. No test or build commands were run; repository content was accessed through repo_read.py’s review reader. The changed files and relevant integer parsing helpers were read.

Results

Check Result Note
Changed-line review passed All changed lines read
Build and tests not run Author reports Windows/MSYS2 runs
Overflow handling passed Helper reports range errors

Findings

Blocking

None.

Non-blocking

None.

Not verified

Build and test results reported in the PR description were not independently run. Console behavior and the num_get vtable slot order are not verified against console firmware. Files read: core/libs/prx/libSceLibcInternal/NumGet.cpp, core/libs/tests/GuestLibcInternalNumGetDoGet.cpp, docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md, and core/libs/prx/libc/src/DinkumwareInternals.cpp. No changed files were excluded; files.json was unavailable as a standalone review document, and the manifest lists all three changed files as included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003506112 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6003506112). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T06:27:49Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the implementation and tests cover the stated pointer parsing behavior, and the read code shows no verified defect. ## What I ran Reviewed head `a36eb975060729043d939740549c5d58c093b738`. No test or build commands were run; repository content was accessed through `repo_read.py`’s review reader. The changed files and relevant integer parsing helpers were read. ## Results | Check | Result | Note | |---|---|---| | Changed-line review | passed | All changed lines read | | Build and tests | not run | Author reports Windows/MSYS2 runs | | Overflow handling | passed | Helper reports range errors | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Build and test results reported in the PR description were not independently run. Console behavior and the `num_get` vtable slot order are not verified against console firmware. Files read: `core/libs/prx/libSceLibcInternal/NumGet.cpp`, `core/libs/tests/GuestLibcInternalNumGetDoGet.cpp`, `docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md`, and `core/libs/prx/libc/src/DinkumwareInternals.cpp`. No changed files were excluded; `files.json` was unavailable as a standalone review document, and the manifest lists all three changed files as included. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-28 14:17:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T14:17:52Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: reject parsed pointer values that exceed uintptr_t before converting them to a pointer.

What I ran

Reviewed head b327c573407ffb2baef41a4be2d5602a8d275ee6 using repo_read.py to inspect the prepared review bundle and targeted source ranges. No build or test commands were run.

Results

Check Result Note
Source review passed Changed implementation and tests read
Build and tests not run No commands run

Findings

Blocking

  • core/libs/prx/libSceLibcInternal/NumGet.cpp:828 converts the parsed unsigned long long directly to uintptr_t without checking whether it fits. On a target where uintptr_t is narrower than unsigned long long, an input above UINTPTR_MAX can be truncated and accepted as a different pointer value. Reject values above std::numeric_limits<std::uintptr_t>::max() and set failbit with a null pointer, as the description promises.

Non-blocking

None.

Not verified

  • Build and test results reported in the PR description were not run during this review.
  • Console behavior and the vtable slot order were not confirmed against the console library.
  • Reviewed changed files: core/libs/prx/libSceLibcInternal/NumGet.cpp, core/libs/tests/GuestLibcInternalNumGetDoGet.cpp, and docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md. No changed files were excluded in manifest.json.

To get this to a good state

Add an explicit uintptr_t range check before the cast, then rerun the pointer parsing tests and build on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6098336078 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6098336078). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-28T14:17:52Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: reject parsed pointer values that exceed `uintptr_t` before converting them to a pointer. ## What I ran Reviewed head `b327c573407ffb2baef41a4be2d5602a8d275ee6` using `repo_read.py` to inspect the prepared review bundle and targeted source ranges. No build or test commands were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed implementation and tests read | | Build and tests | not run | No commands run | ## Findings ### Blocking - `core/libs/prx/libSceLibcInternal/NumGet.cpp:828` converts the parsed `unsigned long long` directly to `uintptr_t` without checking whether it fits. On a target where `uintptr_t` is narrower than `unsigned long long`, an input above `UINTPTR_MAX` can be truncated and accepted as a different pointer value. Reject values above `std::numeric_limits<std::uintptr_t>::max()` and set `failbit` with a null pointer, as the description promises. ### Non-blocking None. ## Not verified - Build and test results reported in the PR description were not run during this review. - Console behavior and the vtable slot order were not confirmed against the console library. - Reviewed changed files: `core/libs/prx/libSceLibcInternal/NumGet.cpp`, `core/libs/tests/GuestLibcInternalNumGetDoGet.cpp`, and `docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md`. No changed files were excluded in `manifest.json`. ## To get this to a good state Add an explicit `uintptr_t` range check before the cast, then rerun the pointer parsing tests and build on the updated head.
MarcZX10 commented 2026-11-28 22:54:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T22:54:41Z.

Review: APPROVED


Reviewed — looks good

The pointer extraction implementation matches the described hexadecimal parsing behavior, and the inspected changed files show no verified blocking defect.

What I ran

Reviewed head 1c0fce7b2f1d1bb3d8bd4d5a537f6958867470e6 using the prepared diff and repo_read.py; no build or tests were run by me.

Results

Check Result Note
Diff and source review passed Three changed files inspected
Build and tests not run Results in the PR description are author-reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

No files were excluded from the changed-file manifest. I read the full contents of core/libs/prx/libSceLibcInternal/NumGet.cpp and core/libs/tests/GuestLibcInternalNumGetDoGet.cpp only in targeted ranges, not in full; I read the complete diff and manifest. Console behavior, builds, and tests were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6100437276 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6100437276). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-28T22:54:41Z. **Review:** APPROVED --- # Reviewed — looks good The pointer extraction implementation matches the described hexadecimal parsing behavior, and the inspected changed files show no verified blocking defect. ## What I ran Reviewed head `1c0fce7b2f1d1bb3d8bd4d5a537f6958867470e6` using the prepared diff and `repo_read.py`; no build or tests were run by me. ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Three changed files inspected | | Build and tests | not run | Results in the PR description are author-reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No files were excluded from the changed-file manifest. I read the full contents of `core/libs/prx/libSceLibcInternal/NumGet.cpp` and `core/libs/tests/GuestLibcInternalNumGetDoGet.cpp` only in targeted ranges, not in full; I read the complete diff and manifest. Console behavior, builds, and tests were not independently verified. ## To get this to a good state Nothing is required.
Plyxen commented 2026-12-03 14:10:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T14:10:20Z.

Review: APPROVED


I read the diff at 1c0fce7b2f. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), merged into main at 6c6b29320fe together with other open PRs (so not an isolated build).

  • guest_libc_internal_num_get_do_get: pass on both.
  • Control (the same tree with the sources of #24723 and #24748 taken out together, because the second contains the first): on Windows the test stops with "do_get ... not implemented". On Linux, with the changed sources of the tested CPU PRs put back to main's, the same test fails too.

Not checked: a title.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6171412672 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6171412672). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T14:10:20Z. **Review:** APPROVED --- I read the diff at `1c0fce7b2f`. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), merged into `main` at `6c6b29320fe` together with other open PRs (so not an isolated build). - `guest_libc_internal_num_get_do_get`: pass on both. - Control (the same tree with the sources of #24723 and #24748 taken out together, because the second contains the first): on Windows the test stops with "do_get ... not implemented". On Linux, with the changed sources of the tested CPU PRs put back to `main`'s, the same test fails too. Not checked: a title. AI-assisted: yes (Claude Code)
ligmaSec commented 2026-12-03 15:10:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:10:54Z.

Review: COMMENTED


Could you coordinate this with #24748 before merging? Both PRs replace the same pointer slot and update the same tests and debt fragment. #24748 also binds the direct do_get(void**) export. Applying both changes independently would duplicate the shared implementation.

I ran guest_libc_internal_num_get_do_get on Linux with this patch applied. It passed, including the vtable extraction cases for hexadecimal input, a bare prefix, and overflow.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6172551312 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24723#pullrequestreview-6172551312). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T15:10:54Z. **Review:** COMMENTED --- Could you coordinate this with #24748 before merging? Both PRs replace the same pointer slot and update the same tests and debt fragment. #24748 also binds the direct `do_get(void**)` export. Applying both changes independently would duplicate the shared implementation. I ran `guest_libc_internal_num_get_do_get` on Linux with this patch applied. It passed, including the vtable extraction cases for hexadecimal input, a bare prefix, and overflow. AI-assisted: yes.
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!24723
No description provided.