feat(libSceLibcInternal): export num_get pointer do_get #24748
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24748"
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?
Imported from boykopovar/AnyPS5. Originally posted by paulk161 on 2026-11-21T01:06:13Z.
What
Export the classic
num_get<char>::do_get(..., void*&)virtual directly under NIDVKdXFE7ualw.The former inventory-only
int()placeholder inErr.cppis removed. The correctly typed export delegates to the pointer parser introduced by #24723. A regression test loadsVKdXFE7ualwdirectly and verifies that it parses hexadecimal pointer input even when the stream basefield is decimal.The corresponding inventory-only technical-debt entry is removed.
This is a stacked follow-up to #24723. Until #24723 lands, the GitHub diff against
mainalso includes its underlying pointer-parser commit. After #24723 lands, this PR reduces to commit344706ef90.Tested
Windows 11, MSYS2 UCRT64:
guest_libc_internal_num_get_testsguest_libc_internal_num_get_do_get_testsguest_libc_internal_num_getandguest_libc_internal_num_get_do_getVKdXFE7ualwis registered exactly oncesceLibcInternalPending3_066_nid_no_patchis absentgit diff --checktools/debt_fold.py --checktools/check_conventions.pypassed against stacked basea237185a51tools/pr_overlap.pyrequired manual review because several older broadlibSceLibcInternalbranches could not be merged into the current base. PRs #13778, #14834, #17300, #17746, #18135 and #19434 were checked directly; none touchesVKdXFE7ualw,sceLibcInternalPending3_066,IostateERPv, or the direct pointerdo_getexport. The reported overlap with #24520 comes from the underlying #24723 debt-fragment change.Checklist
main; no other open PR implements the same functionNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
0xprefix, regardless of the stream’s configured number base.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T01:13:33Z.
Review: APPROVED
Reviewed — looks good
The pointer
do_getexport delegates to the existing hexadecimal parser, and the added tests cover its direct call and key parsing failures.What I ran
Reviewed head
344706ef90598a8c13e0c18ec7f973d7bfde3870using the prepared diff and pinned readerrepo_read.py. No commands or tests were run. The PR description reports targeted tests and checks performed by the author; those were not run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build or test run was performed. The PR description reports Windows 11/MSYS2 UCRT64 test results, but those results were not independently verified. All five changed files listed in the manifest were read; none were excluded.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-21T01:33:33Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
344706ef90:tools/check_conventions.pypassed.guest_libc_internal_num_get_do_get_testsbuilt cleanly.guest_libc_internal_num_get_do_get):core/libs/prx/libSceLibcInternal/Err.cpp,core/libs/prx/libSceLibcInternal/NumGet.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:28:02Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the checked source supports merging, while reported test runs were not independently run here.
What I ran
Inspected head
16a00ed649cacb5023fbbda27ee5fdfec3304623using the pinnedrepo_read.pyreader. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed source and tests support the stated pointer parsing behavior, including forced hexadecimal parsing, invalid input, overflow, and direct export invocation. Physical-console behavior and the author's reported commands and test results were not independently verified.
files.jsonwas not available through the reader. Read:core/libs/prx/libSceLibcInternal/NumGet.cpp,core/libs/prx/libSceLibcInternal/Err.cpp,core/libs/tests/GuestLibcInternalNumGetDoGet.cpp,docs/dev/debt/changes/feat-libcinternal-num-get-do-get.md, anddocs/dev/debt/libSceLibcInternal.md. No files were excluded from this review based on a readable exclusion manifest; reviewed-file completeness could not be confirmed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T14:16:59Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation and targeted regression cases support merging.
What I ran
Reviewed head
28a990d674c5e1b918d58669c345a0a251e0ac24. No commands or tests were run in this review; the Windows/MSYS2 test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No runtime tests, build, export inventory check, or console behavior were independently verified. Read all five changed files listed in
review/manifest.json:Err.cpp,NumGet.cpp,GuestLibcInternalNumGetDoGet.cpp, and the two debt documentation files. No files were excluded in the manifest. The available review bundle did not include a readablefiles.json; the manifest reports all five changed files as included.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T22:58:29Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the inspected parser and direct export support the stated hexadecimal pointer parsing behavior.
What I ran
Reviewed head
2e743f9562f7da492b166e483db33fcf335f8ecausingrepo_read.pyto inspect the prepared diff and source ranges. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Builds, tests, export uniqueness, and debt checks reported in the PR description were not run independently. No files were excluded by
manifest.json;review/files.jsonwas unavailable through the reader. The reviewed behavior was not tested on a physical console.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T14:10:27Z.
Review: APPROVED
I read the diff at
2e743f9562. Windows 11 with GCC 15.2 and Linux (Ubuntu 24.04 in WSL2, GCC 13.3), merged intomainat6c6b29320fetogether with other open PRs (so not an isolated build).guest_libc_internal_num_get_do_get: pass on both.main's, the same test fails too.Not checked: a title.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T15:10:56Z.
Review: COMMENTED
This shares its pointer slot implementation and most of its fixture with #24723. Please coordinate the merge order or consolidate the shared changes. This branch also handles the direct
do_get(void**)export and removes its pending entry.I ran
guest_libc_internal_num_get_do_geton Linux with this patch applied. It passed for both the facet and direct export paths.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.