fix(libSceWebBrowserDialog): return ARG_NULL from result for unwritable pointers #16746
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16746"
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 Kikoarl on 2026-11-07T15:07:17Z.
What
Validate guest result and extended pointers in
sceWebBrowserDialogGetResultusingGuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchwith callererrnopreservation. When unmapped memory (0x10) or read-only memory (.rodata) is provided for result or extended structures, return0x80B8000D(COMMON_DIALOG_ERROR_ARG_NULL) instead of crashing the host process. Document the host-safety fallback under### Functionalindocs/dev/debt/libSceWebBrowserDialog.md.Tested
ctest --test-dir /tmp/anyps5_build -R "^guest_web_browser_dialog" --output-on-failure(100% pass, 2/2 tests passed, 0.07s).core/libs/tests/GuestWebBrowserDialog.cpp: verified thatsceWebBrowserDialogGetResultsafely returnsCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) and preserveserrnowhen passed unmapped (0x10) or read-only (.rodata) memory forresultandextended(fails onorigin/mainwith SIGSEGV).python3 tools/check_conventions.py --base origin/mainwith 0 errors and 0 warnings.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)Pull request closed