fix(libSceJxr): copy attachISWrite, putBit16z and fillToByte guest pointers safely #23686
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23686"
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 plentilha on 2026-11-19T13:02:09Z.
What
ioandstreaminattachISWrite_nid_postfix,putBit16z_nid_postfix, andfillToByte_nid_postfix(core/libs/prx/libSceJxr/src/BitIo.cpp) throughGuestCopyIn_nid_no_patchandGuestCopyOut_nid_no_patchwhile preserving callererrnoand throwingstd::invalid_argumenton unreadable or unwritable guest pointers.BitIo/Streampointers witherrnopreservation incore/libs/tests/GuestJxrBitIo.cpp.docs/dev/debt/changes/fix-jxr-bitio-write-guest-copy.md.Tested
ctest --test-dir build --output-on-failure -R "^guest_jxr_bitio$"):origin/mainfailed withException: SegFault.1/1(guest_jxr_bitio) passed.tools/guest_pointer_audit.py libSceJxr:0findings inattachISWrite_nid_postfix,putBit16z_nid_postfix, andfillToByte_nid_postfix.tools/debt_fold.py --check,core/libs/tests/test_public_headers.py --audit-only,tools/tests/test_public_headers_manifest.py, andtools/check_conventions.pypassed.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T14:57:28Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
46abbab7c7:tools/check_conventions.pypassed.guest_jxr_bitio_testsbuilt cleanly.guest_jxr_bitio):core/libs/prx/libSceJxr/src/BitIo.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me