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 062a017e46:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_np_eula_dialog_testsbuilt cleanly. - CTest (
guest_np_eula_dialog):1/1 Test #4595: guest_np_eula_dialog ............. Passed 0.45 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceNpEulaDialog/Export.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/1 Test #4595: guest_np_eula_dialog .............Subprocess aborted***Exception: 0.13 sec 0% tests passed, 1 tests failed out of 1 - Code reading:
- core/libs/prx/libSceNpEulaDialog/Export.cpp: sceNpEulaDialogOpen probes param with GuestCopyIn_nid_no_patch(&probe, param, sizeof(probe)) while preserving caller errno on both success and failure paths
- core/libs/prx/libSceNpEulaDialog/Export.cpp: status checks (COMMON_DIALOG_STATUS_NONE -> COMMON_DIALOG_ERROR_NOT_INITIALIZED, COMMON_DIALOG_STATUS_RUNNING -> COMMON_DIALOG_ERROR_BUSY) remain correctly ordered before pointer checks
- core/libs/prx/libSceNpEulaDialog/Export.cpp: returns COMMON_DIALOG_ERROR_ARG_NULL (0x80B8000Du) when param is nullptr or unreadable guest memory
- core/libs/prx/libSceNpEulaDialog/Export.cpp: atomic CAS loop g_status.compare_exchange_weak(status, COMMON_DIALOG_STATUS_FINISHED) remains thread-safe
- core/libs/tests/GuestNpEulaDialog.cpp: verified unit test exercises unreadable address 0x10 and verifies caller errno preservation
Looks Good To Me
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release,
AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
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 unreadable-pointer check preserves errno and returns the argument error before changing dialog state.
What I ran
Reviewed head 062a017e46d0e2b176977b7ec09e06e9a081dd32 and the prepared diff. I did not run tests or commands. The PR description reports unit tests and a conventions check; those were not run by me.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed source review | passed | Both changed files read |
| Tests and conventions check | not run | Reported by the author only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No files were excluded from the prepared diff. The two changed files listed in the manifest were read in full. Tests, conventions check, and runtime behavior were not independently verified.
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_patchinsceNpEulaDialogOpenbefore transition, preserving callererrnoand returningCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) if unreadable.Tested
tests/guest_np_eula_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)