fix(libSceAppContent): safely probe guest initialization and query pointers #18954

Merged
pushkarreddyy merged 10 commits from upstream-pr/18954 into main 2026-11-25 15:24:29 +00:00
pushkarreddyy commented 2026-11-12 15:56:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-11-12T15:56:46Z.


What

In core/libs/prx/libSceAppContent/Export.cpp, several exports directly dereferenced guest pointers or passed them to host operations without safe copying, causing host crashes on unmapped memory:

  • sceAppContentInitialize: Safely probe initParam and bootParam via GuestCopyIn_nid_no_patch before checking reserved fields, zero bootParam via GuestCopyOut_nid_no_patch, and preserve caller errno across copy failures.
  • sceAppContentGetPftFlag: Write the output flag via GuestCopyOut_nid_no_patch preserving caller errno.
  • sceAppContentGetAddcontInfoListByIroTag: Write hitNum via GuestCopyOut_nid_no_patch preserving caller errno.
  • sceAppContentTemporaryDataGetAvailableSpaceKb: Safely probe mountPoint via GuestCopyIn_nid_no_patch before inspecting mount path prefixes, probe and write availableSpaceKb via GuestCopyOut_nid_no_patch, and preserve caller errno.
  • Added unit tests in core/libs/tests/GuestAppContent.cpp covering unmapped pointers and errno preservation across initialization and queries.
  • Documented the fallback in docs/dev/debt/libSceAppContent.md.

Tested

  • Windows 11 (MinGW-w64 GCC 15.2 UCRT): conventions check passed with 0 findings.
  • Unit tests in core/libs/tests/GuestAppContent.cpp verifying unmapped pointer refusal (ErrorParameter) and errno preservation across sceAppContentInitialize, sceAppContentGetPftFlag, sceAppContentGetAddcontInfoListByIroTag, and sceAppContentTemporaryDataGetAvailableSpaceKb.

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: none
  • Fixes: Fixes #18947
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5280663675 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-12T15:56:46Z. --- ### What In `core/libs/prx/libSceAppContent/Export.cpp`, several exports directly dereferenced guest pointers or passed them to host operations without safe copying, causing host crashes on unmapped memory: - `sceAppContentInitialize`: Safely probe `initParam` and `bootParam` via `GuestCopyIn_nid_no_patch` before checking reserved fields, zero `bootParam` via `GuestCopyOut_nid_no_patch`, and preserve caller `errno` across copy failures. - `sceAppContentGetPftFlag`: Write the output flag via `GuestCopyOut_nid_no_patch` preserving caller `errno`. - `sceAppContentGetAddcontInfoListByIroTag`: Write `hitNum` via `GuestCopyOut_nid_no_patch` preserving caller `errno`. - `sceAppContentTemporaryDataGetAvailableSpaceKb`: Safely probe `mountPoint` via `GuestCopyIn_nid_no_patch` before inspecting mount path prefixes, probe and write `availableSpaceKb` via `GuestCopyOut_nid_no_patch`, and preserve caller `errno`. - Added unit tests in `core/libs/tests/GuestAppContent.cpp` covering unmapped pointers and errno preservation across initialization and queries. - Documented the fallback in `docs/dev/debt/libSceAppContent.md`. ### Tested - Windows 11 (MinGW-w64 GCC 15.2 UCRT): conventions check passed with 0 findings. - Unit tests in `core/libs/tests/GuestAppContent.cpp` verifying unmapped pointer refusal (`ErrorParameter`) and `errno` preservation across `sceAppContentInitialize`, `sceAppContentGetPftFlag`, `sceAppContentGetAddcontInfoListByIroTag`, and `sceAppContentTemporaryDataGetAvailableSpaceKb`. ### 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: none - [x] Fixes: Fixes #18947 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-12 16:12:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T16:12:27Z.

Review: COMMENTED


Reviewed unmapped guest pointer probing in libSceAppContent — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head: c45a37548ec7aff5bb704891dde1a216d002380d, base main.
  • Read the description, commits, manifest and diff.patch. The three changed files were read through the diff; their full text at head was not read. Excluded by rule: none.
  • Searched the repository reader for the copy helpers and their callers, then read the helper and the code around the changed tests:
python3 repo_read.py search GuestCopyIn_nid_no_patch
python3 repo_read.py search GuestCopyOut_nid_no_patch(void
python3 repo_read.py search IsTemporaryMountPoint
python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 850 900
python3 repo_read.py cat core/libs/prx/libSceAppContent/Export.cpp 1 30
python3 repo_read.py cat core/libs/tests/GuestAppContent.cpp 70 100
  • Build and unit tests: not run.

Results

Check Result Note
Diff of changed code passed three files, no exclusions
Copy helper contract passed address 0 returns false
Build and unit tests not run no build in this run
Windows conventions check not run author-reported only

Findings

Blocking

None.

Non-blocking

  1. core/libs/prx/libSceAppContent/Export.cpp:310 — Before this change, sceAppContentInitialize read initParam only when the SDK version was at least 0x01500000. Now any non-null initParam that fails GuestCopyIn_nid_no_patch returns SCE_APP_CONTENT_ERROR_PARAMETER for every SDK version, so an older title that passes an unmapped initParam now gets an error where it used to succeed. The added tests do not show an older-SDK case. Either probe initParam only inside the 0x01500000 branch, or add a test for that path.
  2. core/libs/prx/libSceAppContent/Export.cpp:357 — The probe reads availableSpaceKb, which is an output pointer, so a guest buffer that is writable but not readable is refused. This is a design choice, not a defect. The debt note says console behaviour on unmapped memory is unmeasured, so it should say this too.

Sources

Not verified

  • Build, unit tests and the Windows conventions check. The Windows run is author-reported and was not run here.
  • Console behaviour on unmapped memory, and on titles built for an older SDK.
  • Fixes #18947: the linked issue was not read.
  • The full text of the three changed files at head. Only the diff and the excerpts listed above were read.
  • Whether the exception thrown on the Linux copy path (see Sources) reaches the guest or is caught. The new call sites rely on that path; I did not trace it.

To get this to a good state

Nothing is required.

Optional: the two non-blocking points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5877881624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5877881624). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T16:12:27Z. **Review:** COMMENTED --- # Reviewed unmapped guest pointer probing in libSceAppContent — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head: `c45a37548ec7aff5bb704891dde1a216d002380d`, base `main`. - Read the description, commits, manifest and `diff.patch`. The three changed files were read through the diff; their full text at head was not read. Excluded by rule: none. - Searched the repository reader for the copy helpers and their callers, then read the helper and the code around the changed tests: ``` python3 repo_read.py search GuestCopyIn_nid_no_patch python3 repo_read.py search GuestCopyOut_nid_no_patch(void python3 repo_read.py search IsTemporaryMountPoint python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 850 900 python3 repo_read.py cat core/libs/prx/libSceAppContent/Export.cpp 1 30 python3 repo_read.py cat core/libs/tests/GuestAppContent.cpp 70 100 ``` - Build and unit tests: not run. ## Results | Check | Result | Note | | --- | --- | --- | | Diff of changed code | passed | three files, no exclusions | | Copy helper contract | passed | address 0 returns false | | Build and unit tests | not run | no build in this run | | Windows conventions check | not run | author-reported only | ## Findings **Blocking** None. **Non-blocking** 1. `core/libs/prx/libSceAppContent/Export.cpp:310` — Before this change, `sceAppContentInitialize` read `initParam` only when the SDK version was at least `0x01500000`. Now any non-null `initParam` that fails `GuestCopyIn_nid_no_patch` returns `SCE_APP_CONTENT_ERROR_PARAMETER` for every SDK version, so an older title that passes an unmapped `initParam` now gets an error where it used to succeed. The added tests do not show an older-SDK case. Either probe `initParam` only inside the `0x01500000` branch, or add a test for that path. 2. `core/libs/prx/libSceAppContent/Export.cpp:357` — The probe reads `availableSpaceKb`, which is an output pointer, so a guest buffer that is writable but not readable is refused. This is a design choice, not a defect. The debt note says console behaviour on unmapped memory is unmeasured, so it should say this too. ## Sources - [`GuestCopyIn_nid_no_patch`](https://github.com/boykopovar/AnyPS5/blob/c45a37548ec7aff5bb704891dde1a216d002380d/core/libs/prx/libc/src/General.cpp#L870-L875): returns false for address 0 and for a size that overflows. - [Linux copy path](https://github.com/boykopovar/AnyPS5/blob/c45a37548ec7aff5bb704891dde1a216d002380d/core/libs/prx/libc/src/General.cpp#L850-L854): a host error other than the one that maps to false throws. ## Not verified - Build, unit tests and the Windows conventions check. The Windows run is author-reported and was not run here. - Console behaviour on unmapped memory, and on titles built for an older SDK. - `Fixes #18947`: the linked issue was not read. - The full text of the three changed files at head. Only the diff and the excerpts listed above were read. - Whether the exception thrown on the Linux copy path (see Sources) reaches the guest or is caught. The new call sites rely on that path; I did not trace it. ## To get this to a good state Nothing is required. Optional: the two non-blocking points above.
MarcZX10 commented 2026-11-14 04:44:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T04:44:23Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing in the inspected changes shows a blocking defect; review was limited to the changed files and targeted implementation context.

What I ran

Reviewed head 4ad7ff9b51daa482f148401596ab0c52487cc3dc. No commands or tests were run.

Results

Check Result Note
Code review passed Three changed files inspected
Tests not run Author-reported tests not independently run
Platform behavior not run No console verification

Findings

Blocking

None identified in the inspected code.

Non-blocking

None.

Not verified

The complete changed test file and documentation were not read. Test execution and physical-console behavior were not verified. Files read: description.md, commits.md, manifest.json, diff.patch, core/libs/prx/libSceAppContent/Export.cpp (lines 1–90, 330–410, 550–610), and core/libs/tests/GuestAppContent.cpp (lines 1–120). The manifest lists three changed files; the remainder of the test file and docs/dev/debt/libSceAppContent.md were not read. No files were excluded by rule.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901711435 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5901711435). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T04:44:23Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing in the inspected changes shows a blocking defect; review was limited to the changed files and targeted implementation context. ## What I ran Reviewed head `4ad7ff9b51daa482f148401596ab0c52487cc3dc`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Code review | passed | Three changed files inspected | | Tests | not run | Author-reported tests not independently run | | Platform behavior | not run | No console verification | ## Findings ### Blocking None identified in the inspected code. ### Non-blocking None. ## Not verified The complete changed test file and documentation were not read. Test execution and physical-console behavior were not verified. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `core/libs/prx/libSceAppContent/Export.cpp` (lines 1–90, 330–410, 550–610), and `core/libs/tests/GuestAppContent.cpp` (lines 1–120). The manifest lists three changed files; the remainder of the test file and `docs/dev/debt/libSceAppContent.md` were not read. No files were excluded by rule. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 15:27:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T15:27:28Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed code adds safe guest pointer copies and errno preservation; one optional compatibility question remains about reading bootParam on older SDKs.

What I ran

Reviewed head 1b4bcbb3808586bd09d0f2e5410119bf97b9874e using the prepared diff and repo_read.py.

No build or tests run; repository access was read-only.

Results

Check Result Note
Diff and changed code passed Three changed files read
Build and unit tests not run No execution available

Negative control

Not run; no test execution was available.

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceAppContent/Export.cpp:354: bootParam is read-probed for every SDK version, although reserved-field validation only applies from SDK 0x01500000. For older SDKs, this adds a read-permission requirement to an output buffer that previously only needed to be writable. Consider skipping the input copy for older SDKs, and add coverage for that case if write-only guest buffers are supported.

Sources

Reviewed core/libs/prx/libSceAppContent/Export.cpp, core/libs/tests/GuestAppContent.cpp, and docs/dev/debt/libSceAppContent.md at the pinned head. Changed code references above point to the prepared diff for that head.

Not verified

Build and unit-test results were not verified. All three changed files listed as reviewed in the manifest were read. No files were excluded by the supplied manifest; review/files.json was not available through the reader.

To get this to a good state

Nothing is required. Optional: clarify whether older-SDK boot output buffers must be readable, and adjust the probe or document the behavior accordingly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5959616713 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5959616713). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T15:27:28Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed code adds safe guest pointer copies and errno preservation; one optional compatibility question remains about reading bootParam on older SDKs. ## What I ran Reviewed head `1b4bcbb3808586bd09d0f2e5410119bf97b9874e` using the prepared diff and `repo_read.py`. ```text No build or tests run; repository access was read-only. ``` ## Results | Check | Result | Note | |---|---|---| | Diff and changed code | passed | Three changed files read | | Build and unit tests | not run | No execution available | ## Negative control Not run; no test execution was available. ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceAppContent/Export.cpp:354`: `bootParam` is read-probed for every SDK version, although reserved-field validation only applies from SDK `0x01500000`. For older SDKs, this adds a read-permission requirement to an output buffer that previously only needed to be writable. Consider skipping the input copy for older SDKs, and add coverage for that case if write-only guest buffers are supported. ## Sources Reviewed `core/libs/prx/libSceAppContent/Export.cpp`, `core/libs/tests/GuestAppContent.cpp`, and `docs/dev/debt/libSceAppContent.md` at the pinned head. Changed code references above point to the prepared diff for that head. ## Not verified Build and unit-test results were not verified. All three changed files listed as reviewed in the manifest were read. No files were excluded by the supplied manifest; `review/files.json` was not available through the reader. ## To get this to a good state Nothing is required. Optional: clarify whether older-SDK boot output buffers must be readable, and adjust the probe or document the behavior accordingly.
MarcZX10 commented 2026-11-18 16:43:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T16:43:20Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: preserve the documented SDK behavior for legacy initialization when bootParam is unreadable.

What I ran

Reviewed head 524d977aafff807dfd77498a9908589c22157043 against the prepared patch; no commands or tests were run.

Results

Check Result Note
Patch and changed code passed Three changed files read
Automated checks not run No commands run
Console behavior not run Not measured on hardware

Findings

Blocking

  • core/libs/prx/libSceAppContent/Export.cpp:354 — For SDK versions below 0x01500000, the prior implementation did not read bootParam before clearing it. The new unconditional GuestCopyIn_nid_no_patch makes an unreadable bootParam return SCE_APP_CONTENT_ERROR_PARAMETER, changing legacy behavior and contradicting the PR's SDK-specific compatibility demonstrated for initParam. Keep the safe output write, but avoid making a readable input boot record a requirement for legacy SDKs.

Non-blocking

None.

Not verified

  • No tests or conventions check were run; the Windows 11 and unit-test results in the PR description are author-reported.
  • Console behavior for invalid guest pointers is unmeasured, as the changed technical-debt note states.
  • All changed files listed in the manifest were read: core/libs/prx/libSceAppContent/Export.cpp, core/libs/tests/GuestAppContent.cpp, and docs/dev/debt/libSceAppContent.md. No changed files were excluded in the manifest.

To get this to a good state

Retain the SDK-specific legacy behavior for bootParam, and add a regression test for an unreadable boot pointer with an SDK version below 0x01500000; rerun the unit tests and conventions check on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5961036583 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5961036583). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T16:43:20Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: preserve the documented SDK behavior for legacy initialization when `bootParam` is unreadable. ## What I ran Reviewed head `524d977aafff807dfd77498a9908589c22157043` against the prepared patch; no commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Patch and changed code | passed | Three changed files read | | Automated checks | not run | No commands run | | Console behavior | not run | Not measured on hardware | ## Findings ### Blocking - `core/libs/prx/libSceAppContent/Export.cpp:354` — For SDK versions below `0x01500000`, the prior implementation did not read `bootParam` before clearing it. The new unconditional `GuestCopyIn_nid_no_patch` makes an unreadable `bootParam` return `SCE_APP_CONTENT_ERROR_PARAMETER`, changing legacy behavior and contradicting the PR's SDK-specific compatibility demonstrated for `initParam`. Keep the safe output write, but avoid making a readable input boot record a requirement for legacy SDKs. ### Non-blocking None. ## Not verified - No tests or conventions check were run; the Windows 11 and unit-test results in the PR description are author-reported. - Console behavior for invalid guest pointers is unmeasured, as the changed technical-debt note states. - All changed files listed in the manifest were read: `core/libs/prx/libSceAppContent/Export.cpp`, `core/libs/tests/GuestAppContent.cpp`, and `docs/dev/debt/libSceAppContent.md`. No changed files were excluded in the manifest. ## To get this to a good state Retain the SDK-specific legacy behavior for `bootParam`, and add a regression test for an unreadable boot pointer with an SDK version below `0x01500000`; rerun the unit tests and conventions check on the updated head.
MarcZX10 commented 2026-11-18 17:39:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T17:39:45Z.

Review: APPROVED


Reviewed — looks good

The pointer probes and errno preservation are consistent with the existing guest-copy helpers; the review covers all three changed files at head 5df954574527867c757a4f7ac305072734147800.

What I ran

No tests or build commands were run. I read description.md, commits.md, manifest.json, diff.patch, and the full text of all three changed files. I also read the relevant guest-copy implementation in General.cpp.

Results

Check Result Note
Changed-file review passed All three changed files read
Unit tests not run Author-reported tests not independently run
Conventions check not run Author-reported check not independently run

Findings

Blocking

None.

Non-blocking

None.

Not verified

The unit tests and conventions check reported in the PR description were not run in this review. Console behavior for invalid guest pointers remains unmeasured, as documented in the changed debt entry.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5961959857 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5961959857). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T17:39:45Z. **Review:** APPROVED --- # Reviewed — looks good The pointer probes and errno preservation are consistent with the existing guest-copy helpers; the review covers all three changed files at head `5df954574527867c757a4f7ac305072734147800`. ## What I ran No tests or build commands were run. I read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, and the full text of all three changed files. I also read the relevant guest-copy implementation in `General.cpp`. ## Results | Check | Result | Note | |---|---|---| | Changed-file review | passed | All three changed files read | | Unit tests | not run | Author-reported tests not independently run | | Conventions check | not run | Author-reported check not independently run | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The unit tests and conventions check reported in the PR description were not run in this review. Console behavior for invalid guest pointers remains unmeasured, as documented in the changed debt entry. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 18:33:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T18:33:06Z.

Review: APPROVED


Reviewed — looks good

The changed code safely probes the targeted guest pointers and preserves errno; I found no verified blocking defect in the reviewed files.

What I ran

Reviewed head ed8bd43279d02fa7872ff870b04a85eac9185f8c using repo_read.py to inspect the prepared diff and repository files. No tests or build commands were run.

Results

Check Result Note
Changed code review passed Three changed files read
Tests and build not run No execution environment used

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests, build, conventions check, and console behavior were not verified. Read: core/libs/prx/libSceAppContent/Export.cpp, core/libs/tests/GuestAppContent.cpp, docs/dev/debt/libSceAppContent.md, plus the prepared description, commits, manifest, and diff. The file listing identified three changed files; all three were read. files.json was not present in the review bundle.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5962754176 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-5962754176). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T18:33:06Z. **Review:** APPROVED --- # Reviewed — looks good The changed code safely probes the targeted guest pointers and preserves `errno`; I found no verified blocking defect in the reviewed files. ## What I ran Reviewed head `ed8bd43279d02fa7872ff870b04a85eac9185f8c` using `repo_read.py` to inspect the prepared diff and repository files. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Three changed files read | | Tests and build | not run | No execution environment used | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Tests, build, conventions check, and console behavior were not verified. Read: `core/libs/prx/libSceAppContent/Export.cpp`, `core/libs/tests/GuestAppContent.cpp`, `docs/dev/debt/libSceAppContent.md`, plus the prepared description, commits, manifest, and diff. The file listing identified three changed files; all three were read. `files.json` was not present in the review bundle. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 02:22:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T02:22:01Z.

Review: COMMENTED


Reviewed — comments

The change adds guest pointer probing and errno preservation; I found a possible mismatch in how a legacy SDK path handles an unreadable boot parameter.

What I ran

Reviewed head a86d409288944a22d285858e048424b5b2e1b2ad. Read the prepared description, commits, manifest, diff, and the changed implementation and test source ranges listed below. No tests or builds were run.

Results

Check Result Note
Source review passed Changed paths inspected
Build and tests not run No execution performed

Findings

Blocking

None verified.

Non-blocking

  • sceAppContentInitialize reads bootParam on SDK 0x01500000 and newer to validate reserved fields, then always writes a cleared structure. On older SDKs it skips the read, but still performs the write. The tests exercise a write-only page on non-Windows hosts, while the host's guest-copy implementation may not treat write-only memory consistently across platforms. Consider documenting this platform dependence or adding a test using the project's mapped guest memory abstraction. Changed line: core/libs/prx/libSceAppContent/Export.cpp:343.

Not verified

  • No build, unit tests, conventions check, or host platform coverage was run; results stated in the PR description are author-reported.
  • Read changed files: core/libs/prx/libSceAppContent/Export.cpp, core/libs/tests/GuestAppContent.cpp, and docs/dev/debt/libSceAppContent.md. All three changed files are marked included in the manifest and their relevant ranges were read. No files were excluded according to the manifest. files.json was not available through the reader.
  • Full repository behavior outside the inspected ranges was not verified.

To get this to a good state

Nothing is required. Optional: clarify the write-only-page test's platform assumptions.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6050757885 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18954#pullrequestreview-6050757885). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T02:22:01Z. **Review:** COMMENTED --- # Reviewed — comments The change adds guest pointer probing and errno preservation; I found a possible mismatch in how a legacy SDK path handles an unreadable boot parameter. ## What I ran Reviewed head `a86d409288944a22d285858e048424b5b2e1b2ad`. Read the prepared description, commits, manifest, diff, and the changed implementation and test source ranges listed below. No tests or builds were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed paths inspected | | Build and tests | not run | No execution performed | ## Findings ### Blocking None verified. ### Non-blocking - `sceAppContentInitialize` reads `bootParam` on SDK 0x01500000 and newer to validate reserved fields, then always writes a cleared structure. On older SDKs it skips the read, but still performs the write. The tests exercise a write-only page on non-Windows hosts, while the host's guest-copy implementation may not treat write-only memory consistently across platforms. Consider documenting this platform dependence or adding a test using the project's mapped guest memory abstraction. Changed line: `core/libs/prx/libSceAppContent/Export.cpp:343`. ## Not verified - No build, unit tests, conventions check, or host platform coverage was run; results stated in the PR description are author-reported. - Read changed files: `core/libs/prx/libSceAppContent/Export.cpp`, `core/libs/tests/GuestAppContent.cpp`, and `docs/dev/debt/libSceAppContent.md`. All three changed files are marked included in the manifest and their relevant ranges were read. No files were excluded according to the manifest. `files.json` was not available through the reader. - Full repository behavior outside the inspected ranges was not verified. ## To get this to a good state Nothing is required. Optional: clarify the write-only-page test's platform assumptions.
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!18954
No description provided.