libSceMsgDialog: sceMsgDialogGetResult faults on unwritable result pointers instead of returning ARG_NULL #13959
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-10-31T13:59:52Z.
What happens
sceMsgDialogGetResult(core/libs/prx/libSceMsgDialog.native/Export.cpp:53) crashes the host process withSIGSEGVwhen passed an invalid or unwritable guest memory pointer (such asreinterpret_cast<MsgDialogResult*>(0x10)).In AnyPS5,
sceMsgDialogGetResultchecks fornullptrand returnsCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D), but directly writes to*resultwithout checking memory writability viaGuestCopyOut_nid_no_patch.Title, test or build step
core/libs/tests/GuestMsgDialogNative.cppAnyPS5 commit
origin/mainat828ac0b2aeSystem
Windows 11 / Linux x86_64, GCC 15.2.0, Release
Steps to reproduce
Call
sceMsgDialogGetResult(reinterpret_cast<MsgDialogResult*>(0x10)).Log
What was checked
Verified on unmodified
origin/mainthat passing0x10crashes withSIGSEGV. WithGuestCopyOut_nid_no_patch, the call safely returnsCOMMON_DIALOG_ERROR_ARG_NULL(0x80B8000D).