fix(libSceIcu): copy udat_* guest status pointers safely #20790
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20790"
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 Zyylon on 2026-11-15T15:34:59Z.
What
UErrorCode* statuspointers incore/libs/prx/libSceIcu/DateFormat.cpp(udat_format_nid_postfix,udat_formatForFields_nid_postfix,udat_open_nid_postfix, andudat_toPattern_nid_postfix) viaGuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchwhile preservingerrno, rejecting unreadable or unwritable pointers viaNotImplemented_nid_no_patch(__func__)*status > 0short-circuiting and null-statusvalidation unchangedstatuspointer tests incore/libs/prx/libSceIcu/tests/DateFormat.cppand document the change indocs/dev/debt/changes/fix-icu-date-format-guest-pointers.mdTested
ctest --test-dir build -R "^guest_icu_recovered_signatures$" -Vfailed withException: SegFault(read of 0x0000000000000010atlibSceIcu.prx+0x3f169)ctest --test-dir build -R "^guest_icu_recovered_signatures$" --repeat until-fail:5 -Vpassed5/5(Passed)python tools/debt_fold.py --checkpassedpython tools/check_conventions.py --base origin/mainpassedpython tools/pr_overlap.py --branch fix/icu-date-format-guest-pointers --jobs 16reportedNo overlap with open pull requests.Checklist
CONVENTIONS.md.NotImplementedthrows rather than faking success, and updateddocs/dev/debt/.tools/check_conventions.py --base origin/maincleanly.tools/pr_overlap.pyto check overlap with open PRs.