Repository navigation
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 79dc3ce267:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_vr_service_dialog_testsbuilt cleanly. - CTest (
guest_vr_service_dialog):1/1 Test #5044: guest_vr_service_dialog .......... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceVrServiceDialog/Export.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/1 Test #5044: guest_vr_service_dialog ..........Subprocess aborted***Exception: 0.28 sec 0% tests passed, 1 tests failed out of 1 - Code reading:
- Verified sceVrServiceDialogOpen in core/libs/prx/libSceVrServiceDialog/Export.cpp checks param == nullptr before GuestCopyIn_nid_no_patch probe and returns COMMON_DIALOG_ERROR_ARG_NULL (0x80B8000D).
- Verified caller errno preservation around GuestCopyIn_nid_no_patch both on the failure return path and success path in sceVrServiceDialogOpen.
- Verified guest pointer probe correctly uses GuestCopyIn_nid_no_patch with std::uint8_t probe byte without out-of-bounds access or unhandled memory fault.
- Verified state check order in sceVrServiceDialogOpen: COMMON_DIALOG_STATUS_NONE (COMMON_DIALOG_ERROR_NOT_INITIALIZED), then COMMON_DIALOG_STATUS_RUNNING (COMMON_DIALOG_ERROR_BUSY), then param null/unreadable checks.
- Verified unit tests in core/libs/tests/GuestVrServiceDialog.cpp test invalid pointer 0x10 returns kErrArgNull and preserves errno 71 without corrupting global dialog state.
Looks Good To Me
|
Tested
AI-assisted: yes (Claude Code); the runs are automated, this summary was written from their reports. |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the behavior is consistent with the stated goal, and no verified blocking defect was found.
What I ran
Read the prepared diff and both changed files at head 79dc3ce26726ee0c668e3ecf9c85dce951064132, plus the existing GuestCopyIn_nid_no_patch probe pattern. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | Both changed files were read |
| Unit tests and conventions check | not run | Reported by the author only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
Tests and the conventions check were not run. The prepared files.json and bundle copies of the changed files could not be accessed through the available reader; the changed files were read from the pinned repository head. No changed files were excluded according to manifest.json.
To get this to a good state
Nothing is required.
|
@Kikoarl, I am closing this one. On main this Open function never reads |
What
Safely probe the guest parameter pointer with
GuestCopyIn_nid_no_patchinsceVrServiceDialogOpenbefore transition, preserving callererrnoand returningCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) if unreadable.Tested
tests/guest_vr_service_dialog_testsverifying unreadable parameter refusal and errno preservation.python3 tools/check_conventions.py --base origin/main.Checklist
main; no other open PR implements the same functionsNotImplemented_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)