fix(libSceIcu): copy ufmtval_* guest error pointers safely #20806
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20806"
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:50:28Z.
What
UErrorCode* ecpointers incore/libs/prx/libSceIcu/FormattedValue.cpp(ufmtval_getString_nid_postfixandufmtval_nextPosition_nid_postfix) viaGuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchwhile preservingerrno, rejecting unreadable or unwritable error pointers viaNotImplemented_nid_no_patch(__func__)*ec > 0short-circuiting and null-ecbehavior unchangedecpointer tests incore/libs/prx/libSceIcu/tests/FormattedValue.cppand document the change indocs/dev/debt/changes/fix-icu-formatted-value-guest-pointers.mdTested
ctest --test-dir build -R "^guest_icu_recovered_signatures$" -Vfailed withException: SegFault(read of 0x0000000000000010atlibSceIcu.prx+0x3f7a9)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-formatted-value-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.