fix(libSceHttp2): return invalid value from sceHttp2Init for a maximum of 0 requests as measured in a PS5 payload #11730
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11730"
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 ionut27001 on 2026-10-27T06:14:52Z.
What
sceHttp2Initthrew for any maximum concurrent request count of 0 or below.In a payload process on a PS5 (firmware 12.70),
sceHttp2Initfrom/system/common/lib/libSceHttp2.sprxreturned0x817B11FE(invalid value) for a count of 0. The call used a valid libnet pool, a valid libssl context and a 64 KiB pool; a count of 1 with those same arguments returned0x817B121D(pool too small).This change returns
0x817B11FEfor a count of 0. A negative count still throws: -1 with the 64 KiB pool produced no result before the runner's 60-second timeout, so it either hung or ended the process. In a second run, a count of 1 with a 1 MiB pool also produced no result, and the later counts in that run were not reached, so the accepted path and the smallest accepted pool are not measured either. In both runs the module's start routine returned 8, not 0, which may be related. The debt entry records these gaps.Measured log (case lines, first run, 64 KiB pool, payload process, firmware 12.70):
The next call, with a count of -1, produced no further output.
Overlaps: no open PR changes
sceHttp2Init. The 0x817B11FE value is written inline, as the pool-size check in the same file does, so this PR adds no constant that #10536 or #11470 also define.git merge-treeshows no conflict between this head and #10536, #11630, #11627, #11617, #11616, #11611, #11586, #11575 or #11145. #11470 already conflicts withmainin all three files this PR touches, and #11134 and #9598 already conflict withmain; this PR does not change which of their files conflict.Tested
Windows 11, WinLibs GCC 15.2.0, Release, on
main4291b04daf:guest_http2passes twice. It now checks that a count of 0 returns0x817B11FEand that -1 throws.Export.cppfrommain, the test aborts (0xc0000409), because a count of 0 throws.Not tested on Linux, nor with a title.
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 MarcZX10 on 2026-10-27T06:21:01Z.
Review: DISMISSED
The measured zero-count result and the code change are clearly scoped, and the debt entry records the unmeasured negative-count and valid-pool cases. There is one repository-policy blocker: #11470 and #10536 are still open and each has a content conflict with this head (
git merge-treeconfirms #11470 conflicts inExport.cppandCMakeLists.txt, and #10536 conflicts inExport.cppand the debt file). The PR description identifies the overlaps but does not record an agreed merge order or aDepends onentry. CONTRIBUTING requires that coordination. Please agree with the affected authors on the order and update the checklist; I did not find another code blocker in this pass.