Repository navigation
fix(libSceHttp2): return invalid value from sceHttp2Init for a maximum of 0 requests as measured in a PS5 payload - #11730
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
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-tree confirms #11470 conflicts in Export.cpp and CMakeLists.txt, and #10536 conflicts in Export.cpp and the debt file). The PR description identifies the overlaps but does not record an agreed merge order or a Depends on entry. 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.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@MarcZX10 thanks. Rather than ask for a merge order, I removed the overlap:
|
97c59c6 to
c63b462
Compare
…m of 0 requests as measured in a PS5 payload
c63b462 to
e694001
Compare
Dismissing a stale review: the requested changes were addressed after it (new head) and the merge queue blocks on it. Please request changes again if anything is still open.
|
Checked the diff against the measured PS5 log: a count of 0 returns Added one commit: |
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
main4291b04: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)