feat(libSceHttp): check the arguments of sceHttpSetProxy #9229
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9229"
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 YossiYad on 2026-10-21T15:42:01Z.
What
sceHttpSetProxythrew. It now checks its arguments the way shadPS4's http.cpp does:ERROR_BEFORE_INITwith no live contextERROR_INVALID_VALUE(0x804311FE) for a null hostERROR_INVALID_IDfor an id that is not a live template, connection or request (looked up through the per-object options from #8245)No request reaches the network here, so the proxy is not kept. shadPS4 stores it. The debt file lists the call under Silent stubs, and its "unknown signature" line goes away. Not measured on a PS5.
The signature is shadPS4's
(id, HTTP proxy conf, WLAN proxy conf, host, port).main(from #9137) declares the same types and names the two middle parametersmodeandauthentication. This change does not read them, so either naming fits.Tested
Linux (Fedora 44, GCC, Ninja,
-DBUILD_TESTING=ON), based onmaincecb540a63:guest_http_options(core/libs/tests/GuestHttpOptions.cpp) callssceHttpSetProxyon a live template, connection and request. It checks the null host, the null host on an unknown id (host before id), an unknown id, and the call after the lastsceHttpTerm. It aborts onmain.ctest: 1793 of 1801 pass. The 8 failures fail the same way onmainon this machine and do not link libSceHttp:application_heap_scripting,application_heap_lazy,agc_driver_guest_memory_lifetime,agc_driver_image_array_window_past_layer_limit,agc_driver_tessellationand the threenet_dontwait_blocking_*cases.tools/progress.py --compare: libraries +0.01%, 1 function implemented, none lost.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyfinds #8620 (cookie setters in the same files).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 github-actions[bot] on 2026-10-21T15:42:50Z.
Progress report (
4a17c71→abaaa66)📈 System libraries: 42.0% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceHttpSetProxyImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T16:45:25Z.
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.
main)core/libs/tests/GuestHttpOptions.cppL34Some 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.
core/libs/prx/libSceHttp/Export.cppdocs/dev/debt/libSceHttp.mdImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T19:18:33Z.
Independent Windows run of this PR (data only).
Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against
mainis clean. I built onlyguest_http_options_tests;ctest -N -R guest_http_optionslists exactly one test.PR head tested:
7d68514167fa65ab4e1507f52129c06b5122b24d.Results (3 runs each):
guest_http_optionspasses 3/3.core/libs/prx/libSceHttp/Export.cppwith the version from the PR's merge base (cecb540a63), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-21T19:43:23Z.
Thanks @xXPBSXx for the Windows run, and for the baseline with
Export.cppreverted that shows the test fails without the change.Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-22T05:34:53Z.
Rebased onto
mainda54c652eafter #9137 (headabaaa66a6).sceHttpSetProxynow keepsmain's parameter types and thehostnamename, and the checks are unchanged.guest_http_optionspasses 3 of 3.@oneandonlydean @adriadam10 ready from my side: CI is green, and xXPBSXx's Windows run shows the test failing with
main'sExport.cpp.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T05:48:54Z.
@YossiYad thanks, it's in my review queue now. I'll come back here with the result.