feat(libSceIcu): implement uprv_malloc, uprv_realloc, uprv_strdup and uprv_strndup #17537
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17537"
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 alvaroelpob on 2026-11-08T20:59:21Z.
What
Implements four libSceIcu exports that threw, with the signatures of ICU's
cmemory.handcstring.h(the NIDs are those of the ICU 68 symbols) and the behaviour ofcmemory.cppandcstring.cpp, identical at 68.2 and 78.1:uprv_malloc(0)returns a read-only sentinel anduprv_reallocof the sentinel allocates; the allocator is the one installed withu_setMemoryFunctions, else the guest libc heap.uprv_strdupanduprv_strndupcopy through that allocator. The gaps are indocs/dev/debt/libSceIcu.md.Tested
Linux x86-64: full build,
check_conventions.py --base upstream/mainand the full suite pass on this branch (4581 of 4581 tests, none failing).ctest -R guest_icu_configurationcovers user callbacks and their context, the zero-size sentinel through malloc and realloc, strdup and strndup lengths, and the default guest heap.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)