Repository navigation
fix(libSceRudp): match the console's init and status checks - #3200
Merged
oneandonlydean merged 1 commit intoOct 11, 2026
Merged
Conversation
Measured on a PS5 (firmware 13.60): - sceRudpInit rejects a null pool or a size of 0 or less with INVALID_ARGUMENT, and a pool under 0xC58 bytes or not 8-byte aligned with MEMORY (0x80770007). - sceRudpGetStatus rejects a null pointer or a byte count of 0 or above 0xF8 with INVALID_ARGUMENT and reports the live context count at 0x64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceRudpInitandsceRudpGetStatusnow follow what a PS5 (firmware 13.60) returns, measured with a payload that calls the system'slibSceRudp. PPSA01521 callssceRudpGetStatuswith0xF8bytes (TechnicalDebt).sceRudpInit(pool, size)ALREADY_INITIALIZEDfirst, even for a null pool.INVALID_ARGUMENT(0x80770004).0xC58bytes, or one that is not 8-byte aligned, returnsMEMORY(0x80770007).0xC57fails and0xC58succeeds. Offsets +1, +2 and +4 fail; +8 succeeds.mainaccepted any pool, including(nullptr, 0).sceRudpGetStatus(status, size)sceRudpInit, every call returnsNOT_INITIALIZED, whatever the arguments.0xF8returnsINVALID_ARGUMENT.mainreturned 0.0xF8bytes. Measured values matchSceRudpStatusin Vita3K:currentContextsat0x64: 0, then 1 and 2 aftersceRudpCreateContext, then 1 after closing one;allocs,frees,memCurrentandmemPeakat0xC8to0xD4;0xF8.currentContexts. The traffic and allocator counters stay 0; TechnicalDebt lists this, and the fact that the console also writes some fields past a smaller byte count.Error names follow the Rudp numbering in RPCS3.
Tested
libSceRudp.sprx.ctest753/753;check_conventions.pyandcheck_test_registration.pypass. The newguest_rudp_statustest aborts withmain'sExport.cppand passes with this change.guest_offline_importschanges only the two lines that expectedInit(nullptr, 0)andGetStatus(nullptr, 0)to succeed.ctest760/760, includingguest_rudp_statusandguest_offline_imports.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code