fix(libSceWebBrowserDialog): return ARG_NULL from result and cookie operations for unwritable pointers #16049
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16049"
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 pushkarreddyy on 2026-11-05T13:01:25Z.
What
In
core/libs/prx/libSceWebBrowserDialog/Export.cpp,sceWebBrowserDialogGetResult,sceWebBrowserDialogSetCookie, andsceWebBrowserDialogResetCookiedirectly dereferenced caller-supplied pointer arguments (result->reserved,result->extended,result->result,param->size, etc.) without verifying memory readability or writability. When a guest title passed an unwritable or unmapped pointer (e.g.0x10), host memory access triggered an unhandled fault.GuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchinsceWebBrowserDialogGetResult,sceWebBrowserDialogSetCookie, andsceWebBrowserDialogResetCookie.LengthWithinbefore computing string lengths.COMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) when guest pointer access fails as a host-safety fallback.core/libs/tests/GuestWebBrowserDialog.cppassertingCOMMON_DIALOG_ERROR_ARG_NULLandCOMMON_DIALOG_ERROR_PARAMETERon invalid pointers.docs/dev/debt/libSceWebBrowserDialog.md.Fixes: #16044
Tested
python tools/check_conventions.py --base origin/mainwith 0 findings.core/libs/tests/GuestWebBrowserDialog.cppverifying invalid pointer handling in result, extended result, cookie param, address, and reset cookie queries.Checklist
Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-07T11:37:54Z.
Review: APPROVED
The copy-in/out routing covers the result, cookie, reset-cookie, open and allow-list paths, and the byte-wise LengthWithin reads through GuestCopyIn. The invalid-pointer tests cover each entry point. No findings.