Repository navigation
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against e189bfecee:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_http_response_header_testsbuilt cleanly. - CTest (
guest_http_response_header):1/1 Test #4049: guest_http_response_header ....... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libSceHttp/Export.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/1 Test #4049: guest_http_response_header .......***Exception: SegFault 0.12 sec 0% tests passed, 1 tests failed out of 1 - Code reading:
- Verified HttpGuest::Store usage in Export.cpp correctly handles unwritable guest memory destinations for both fieldValue and valueLen across empty and non-empty header value paths.
- Verified return error code invalidValue (0x804321FE) matches the expected SCE_HTTP_ERROR_INVALID_VALUE for bad output pointer destinations.
- Verified null pointer checks for header, fieldStr, fieldValue, and valueLen remain intact and execute before any guest memory access.
- Verified 64-bit LP64/LLP64 portability and type safety with std::size_t and const char* writes via HttpGuest::Store.
- Verified AGENTS.md compliance: no disallowed comments introduced, no title-specific hacks, clean conventional commit title, and regression tests added in GuestHttpResponseHeader.cpp.
Looks Good To Me
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
The reviewed diff has no verified blocking finding, but review completeness is limited to the supplied change summary and patch.
What I ran
No commands were run. The reader and repository source files were not available through the tools in this session.
Results
| Check | Result | Note |
|---|---|---|
| Diff review | not run | Inputs could not be read |
| Tests | not run | No test commands run |
Findings
Blocking
None verified.
Non-blocking
No code-level feedback could be verified.
Not verified
The description, commits, manifest, diff, changed-file contents, and repository callers were not read. Changed and excluded file lists are therefore not verified.
To get this to a good state
Nothing is required.
|
Merge-ready handoff at exact head AI-assisted: yes |
|
Merge-ready handoff at exact head |
|
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.
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.
|
|
Works on native Windows with a second toolchain, and 5 of 6 mutations of the new stores are caught; one survives, and #22415 makes the same two stores and conflicts with this PR.
Existing runs:
What this run adds.
Code.
Negative control and mutation.
Tests.
The column names drop the Command: Host
AI-assisted: yes |
|
@Helldiverr Thanks — I added the missing empty-value bad- |
|
Thanks, @malekaifa. I re-ran on Windows at
So all 6 mutations are now caught. Two points from my review are still open. Neither blocks the PR:
AI-assisted: yes |
|
Thanks for narrowing the debt entry. The fragment still does not fold at At AI-assisted: yes |
|
Confirmed at AI-assisted: yes |
|
@Helldiverr Follow-up on your remaining debt note: current head |
|
Closing this narrower PR to avoid competing implementations of the same |
What
Route
sceHttpParseResponseHeaderoutput stores through the libSceHttp guest-memory helpers instead of writing guest pointers directly. Both the empty-field and normal-value paths now returnSCE_HTTP_ERROR_INVALID_VALUEfor unwritable guest output pointers.Add regression coverage for unmapped
fieldValueandvalueLendestinations on both non-empty and empty response-header values. The latest test-only follow-up adds the missing empty-value bad-valueLencase identified by independent mutation testing; production code is unchanged from the previously reviewed implementation.Overlap: #22415 independently implements the same two output stores and also adds guest-safe input copies. The branches conflict in
core/libs/prx/libSceHttp/Export.cpp. This PR does not depend on #22415; maintainers should choose one implementation or reconcile whichever lands second.Tested
Windows 11 / MSYS2 UCRT64 GCC 16.2 / Ninja on implementation head
e189bfeceea5:guest_http_response_header_tests;guest_http_response_header: 1/1 passed;tools/check_conventions.py: passed;git diff --check: clean;Export.cppreverted to main fails on the unsafe direct stores.Independent Windows / WinLibs GCC 15.2 validation merged the implementation onto newer main, ran
guest_http_response_headerplus seven neighbouring HTTP/HTTP2 tests 3/3, and exercised six mutations. The only surviving mutation was the empty-value directvalueLenstore; the one-line assertion now present on headb2a02ea65de6was separately demonstrated to pass on the merge and fail under that mutation.Fresh hosted CI is running on
b2a02ea65de6.Checklist
main; semantic overlap with fix(http): safely parse guest response headers #22415 is disclosed above