libSceWebBrowserDialog: dialog result and cookie operations fault on unwritable pointers instead of returning COMMON_DIALOG_ERROR_ARG_NULL #16044
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-05T12:52:59Z.
What happens
In
core/libs/prx/libSceWebBrowserDialog/Export.cpp,sceWebBrowserDialogGetResult,sceWebBrowserDialogSetCookie, andsceWebBrowserDialogResetCookiedirectly dereference caller-supplied pointer arguments (result->reserved,result->extended,result->result,param->size, etc.) without checking memory readability or writability.When a guest title passes an unwritable or unmapped pointer (such as
0x10), host memory access triggers an unhandled memory fault / segmentation fault instead of safely returningCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D).Proposed Fix
GuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchinsceWebBrowserDialogGetResult,sceWebBrowserDialogSetCookie, andsceWebBrowserDialogResetCookie.COMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D) when guest pointer access fails.core/libs/tests/GuestWebBrowserDialog.cpp.docs/dev/debt/libSceWebBrowserDialog.md.