Repository navigation
Conversation
When prepare was too small for the escaped text and its terminator, sceHttpUriEscape stored the full size in require and left the output untouched before returning SCE_HTTP_ERROR_OUT_OF_MEMORY. A PS5 does the reverse. In the console oracle row nh_escape_buffer_too_small (an 8-byte output, prepare 4, "hello world") it returned 0x80431022, wrote "hell" without a terminator and did not touch require: https://github.com/mattias800/prosper/blob/9a9a4bd1b8474e3b930f79bea32c845229ed103c/prosper/tests/data/console_oracle/nethttp.golden.tsv#L37 The other escape rows of that file (lines 31 to 36) already matched. A buffer that is too short now gets the first prepare bytes of the escaped text, and require is written only on success, the way sceHttpUriUnescape already treats a short buffer. What the console writes of a %XX sequence that reaches the end of the buffer was not measured; the debt entry says so and lists the input bytes the oracle covers, in place of the claim that no non-ASCII input was measured. guest_http checks the measured row and that a buffer one byte short leaves require alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DXPnhogDW4zpeNCBro4Ctt
Co-Authored-By: Hermes (Qwen3.8-Flash) <noreply@nousresearch.com>
94003c2 to
0306eb9
Compare
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files and the functions each diff names before concluding that there is no overlap.
|
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, The tests this PR adds or extends, AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Independent recheck on 2026-11-19 found one convention blocker at the exact PR head Separately, the stacked test head |
|
Thanks for the recheck. The link is correct by design and the blocker does not reproduce against current Debt fragments in https://github.com/boykopovar/AnyPS5/blob/dfaa13cdcd/tools/check_conventions.py#L705-L714 def link_bases(path, source):
bases = {}
base = f"{DEBT_DIR}fragment.md" if is_debt_fragment(path) else path
for number, line in enumerate(source.split("\n"), 1):
if is_debt_fragment(path) and line.startswith("# "):
library = line[2:].strip()
base = DEBT if library == PurePosixPath(DEBT).stem else f"{DEBT_DIR}{library}.md"
bases[number] = base
return basesOur fragment's heading is Fresh verification today (2026-11-22) from a current- CI |
|
Confirmed — your explanation is correct, and I’m retracting my earlier conventions blocker. I reproduced the exact check from a clean detached current-
Result: The debt-fragment link is intentionally resolved using the heading-derived consolidated debt base ( No parent change is requested from me on this point. The stacked child remains based on this exact parent head. AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
The change routes the URI builder outputs through guest-safe copies and preserves the documented short-buffer behavior; no blocking defect was verified.
What I ran
Reviewed head 0306eb9a23407d4a80e21dbbe04cc34fb693323f. I read the prepared description, commits, manifest, diff, and all four changed files. I inspected the touched helpers and the GuestCopyOut_nid_no_patch implementation with repo_read.py. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed files | passed | All four changed files read |
| Tests and build | not run | No test execution performed |
| Negative control | not run | No assertion was deliberately broken |
Findings
Blocking
None.
Non-blocking
None.
Sources
The review covered Uri.cpp at the reviewed head, GuestHttp.cpp at the reviewed head, and General.cpp at the reviewed head.
Not verified
Builds, tests, and runtime behavior were not independently verified. The review bundle included full text for every changed file; no changed files were excluded.
To get this to a good state
Nothing is required. Tests and build were not run in this review.
malekaifa
left a comment
There was a problem hiding this comment.
@Tanju42 current head 0306eb9a23407d4a80e21dbbe04cc34fb693323f is still stacked on #12056 and preserves its unresolved short-buffer %XX behavior in ProbeTextRaw(value, out, prepare). Firmware 13.42 evidence and @oneandonlydean's Nov. 1 request show that a short sceHttpUriEscape buffer must stop before a %XX unit that would cross the end (a b, prepare 2 => a, not a%). Please let #12056 fix that measured boundary, then restack this PR and retain the guest-pointer safety changes/tests on the corrected behavior. My earlier debt-link conventions objection remains retracted; this is the remaining blocker. AI-assisted: yes
malekaifa
left a comment
There was a problem hiding this comment.
Superseding my earlier change request: the conventions-link concern was retracted after reproducing the repository checker, and I have now validated this exact head against current main.
Reviewed exact PR head 0306eb9a23407d4a80e21dbbe04cc34fb693323f. I merged it in an isolated worktree onto current main c3aec4c2f341247e2ed47ae9365e2eff8e880c75. The merge is conflict-free even though main has since added broader guest-input probing in Uri.cpp and GuestHttp.cpp; the merged source retains both that newer input safety and this PR's ProbeText/ProbeSize output safety.
Machine main, Windows 11, MSYS2 UCRT64 GCC 16.2.0, Release: current-main + this PR built guest_http_tests, and ctest -R ^guest_http$ --output-on-failure passed 1/1. The merged tree also passes current conventions and git diff --check.
No blocking findings remain from my review.
AI-assisted review: yes
|
I checked the short-buffer path against the firmware 13.42 boundary measurements. I have a local F regression case covering capacities 0?6 and the whole-unit calculation on The older #12056 implementation has the same partial- |
|
Confirmed against the boundary measurements — the clamp itself belongs in the dependency, though. The Could you post your regression case on #12056 — @Aspct3434 was already pinged there (#12056 (comment))? The moment the dependency head carries the unit-clamp fix, this PR restacks onto it right away. |
ligmaSec
left a comment
There was a problem hiding this comment.
I ran guest_http and guest_http_uri_guest_pointers with the patch applied on Linux. Both passed, covering the URI builders' valid results and guarded output destinations.
AI-assisted: yes.
What
sceHttpUriBuild,sceHttpUriEscapeandsceHttpUriMergewroterequiredSize/requirethrough direct stores and the output buffer through rawstd::memcpy— an unmapped guest output was a raw host write. Route every one of these writes throughGuestCopyOut_nid_no_patch, in the order the library already wrote them; an unwritable output returnsSCE_HTTP_ERROR_INVALID_VALUE(0x804311FE) and leaveserrnoalone, followingsceHttpsGetSslErrorin the same library. The merge's non-opaque path keeps #12056's zero-padded copy of the relative URI, including the forced terminator at the last byte. Console behavior on unwritable outputs is unmeasured; recorded as adocs/dev/debt/changesfragment.Tested
Ubuntu 24.04 cloud VM, 8 cores, CPU-only (lavapipe), no GPU. Fresh full build tree (configure + 5500+ targets) of this stack: full
ctestgreen and-R guest_httpgreen. No game titles run.core/libs/tests/GuestHttp.cppgainsRequirelines forsceHttpUriBuild,sceHttpUriEscapeandsceHttpUriMerge: unmapped output orrequirepointers returnSCE_HTTP_ERROR_INVALID_VALUEwitherrnopreserved, and a valid call right after a failed one still succeeds.python3 tools/check_conventions.py --base origin/mainclean.pr_overlap.py --branchoutput verbatim below.Independent Windows verification by a contributor: head
0306eb9a23merged alone intomain56c87adbdcon Windows 11 26300 (i7-12700K, WinLibs GCC 15.2.0, Release) — the tests this PR adds/extends,guest_httpandguest_http_uri_locale, pass 2/2 over three runs, and the PR adds no build failure beyondmain's ownUploadCacheReadOnlyFlush.cppsetenvbreak (fixed by #19899) and the Defender AGC-test quarantine case documented inBUILD.md. Not run on a PS5. Full report.Checklist
main; no other open PR implements the same functions — sits on fix(libSceHttp): fill a short sceHttpUriEscape buffer as a PS5 does #12056's head3b10a94b24(main228cd64b53); no open PR touches the sixsceHttpUri*exportsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file — no new stubs.mdfiles or images added to the repository (attach them to this PR) — only the mandated debt fragment underdocs/dev/debt/changes/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.
core/libs/tests/GuestHttp.cppdocs/dev/debt/libSceHttp.mdcore/libs/tests/GuestHttp.cppdocs/dev/debt/libSceHttp.mddocs/dev/debt/libSceHttp.mddocs/dev/debt/libSceHttp.mddocs/dev/debt/libSceHttp.mdManual comparison of that list: #9834 and #11134 edit
core/libs/tests/GuestHttp.cpponly in their transport/CA areas — neither diff line touches the URI or escape tests (git diff origin/main...pr9834 -- core/libs/tests/GuestHttp.cppcontains no URI/escape lines); #14212 is itself a debt-file formatting PR; #18515 and #19769 share onlydocs/dev/debt/libSceHttp.mdentry lines — #19769's GuestCopy pass covers scalar and struct outputs and does not overlap anysceHttpUri*export.