feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 #14448

Merged
PrivacyOnion merged 1 commit from upstream-pr/14448 into main 2026-11-08 09:47:34 +00:00
PrivacyOnion commented 2026-11-01 14:01:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-01T14:01:42Z.


What

Implements 57 libcurl exports as adapters over libcurl 7.81.0, a new submodule at 3rdparty/curl (tag curl-7_81_0). It is built from source by core/libs/prx/libcurl/CMakeLists.txt (CMake ExternalProject), statically, with the bundled mbedtls (TLS) and nghttp2 (HTTP/2) of libSceSsl and libSceHttp2; DICT, FTP, GOPHER, IMAP, LDAP, MQTT, POP3, RTSP, SMB, SMTP, TELNET and TFTP are disabled. The console's export set matches libcurl 7.73–7.85; its exact version is unknown and recorded in the debt file.

  • Easy interface: curl_easy_init, cleanup, duphandle, reset, perform, pause, recv, send, upkeep, strerror, option_by_id/by_name/next.
    • curl_easy_setopt reads the guest's SysV variadic argument by option type. A guest long is 64-bit and throws std::out_of_range where it does not fit a 32-bit host long; curl_off_t, pointers, slists and blobs pass through.
    • Callbacks: each *FUNCTION option goes through a per-handle host trampoline that calls the guest function with the guest pointer of its *DATA option. The context is copied by duphandle and cleared by reset.
    • Defaults on guest streams: libcurl's default write, read and header paths, and CURLOPT_STDERR, use guest FILE* streams through the guest stdio exports.
    • curl_easy_getinfo writes 64-bit guest longs and passes the other output types through.
  • Multi and share: curl_multi_init, cleanup, add_handle, remove_handle, perform, info_read, timeout, wakeup, socket_all, wait/poll without extra descriptors, curl_multi_setopt (LONG, OFF_T and the timer callback), curl_multi_strerror; curl_share_init, cleanup, setopt (with guest lock callbacks), strerror.
  • URL API: curl_url, curl_url_cleanup, curl_url_dup, curl_url_get, curl_url_set.
  • MIME: curl_mime_init, free, addpart, name, filename, type, encoder, data, filedata, headers, subparts.
  • Utility: curl_global_init, curl_global_cleanup, curl_global_sslset, curl_version, curl_version_info, curl_getdate, curl_getenv, curl_pushheader_bynum, curl_pushheader_byname.

Memory: libcurl allocates through the guest libc heap (malloc, free, realloc, calloc, strdup of libc). Those functions are installed when the library loads, and passed again through curl_global_init_mem by curl_global_init and by the implicit initialization of curl_easy_init. Strings and lists libcurl returns can therefore be freed with the guest free or curl_free. Lists built on the guest heap can be handed to libcurl with ownership (curl_mime_headers(…, 1)).

Left to other PRs: curl_slist_append, curl_slist_free_all, curl_free, curl_escape, curl_unescape, curl_easy_escape and curl_easy_unescape (#14429), and curl_strequal/curl_strnequal (#14337). They stay stubs here, so until #14429 lands, strings libcurl returns (curl_url_get, curl_getenv, …) can only be released with the guest free; with #14429, curl_free releases them. Because libcurl uses the guest heap, the guest-heap lists and curl_free of #14429 work with this library in either merge order, and libcurl's own curl_strequal is renamed inside the backend so it does not clash with #14337's export.

Still stubs (debt file):

  • curl_formadd/formget/formfree;
  • the curl_m*printf family;
  • curl_global_init_mem with guest allocator callbacks;
  • curl_mime_data_cb;
  • curl_multi_assign, fdset, socket and socket_action, plus the socket callback options and CURLINFO_ACTIVESOCKET/LASTSOCKET. The guest socket registry has no reverse lookup for sockets libcurl owns;
  • CURLMOPT_PUSHFUNCTION.

CURLOPT_SSL_CTX_FUNCTION/DATA throw std::invalid_argument, because the TLS context is a host mbedtls object.

Tested

Windows 11, host harness with the Qt MinGW 13.1 toolchain against the static libcurl, mbedtls and nghttp2 built by the repository CMake integration (anyps5_curl_build builds). No network access; transfers use file:// URLs. The six tests in core/libs/prx/libcurl/tests pass:

  • CurlTransfers:
    • a guest write callback receives the exact bytes;
    • the default write path writes into a guest FILE* given as WRITEDATA;
    • an upload through a guest read callback, and a header callback;
    • an xferinfo callback that aborts, with CURLE_ABORTED_BY_CALLBACK;
    • getinfo of RESPONSE_CODE, SIZE_DOWNLOAD_T, EFFECTIVE_URL, CONTENT_TYPE and PRIVATE;
    • duphandle keeping and reset dropping the guest callbacks;
    • HSTS read and write callbacks through three rounds of duphandle and cleanup, then the original handle;
    • the same transfer through curl_multi_perform/curl_multi_wait, with CURLMOPT_TIMERFUNCTION called.
  • CurlHandles, CurlOptions, CurlUrl, CurlSlistMime, CurlUtility: handles and share locks, option metadata, every curl_url_get/set part (results freed with the guest free), MIME parts with guest-heap headers handed over with ownership, version information, dates, error strings and environment lookups.

Every source and test compiles with the real APS5_VABI. tools/check_conventions.py --base upstream/main and core/libs/tests/test_public_headers.py --audit-only pass. A full CMake configure is not possible here (SDL2/ffmpeg submodules missing), so the guest build and CTest run are left to CI.

pr_overlap.py: .gitmodules is shared with PRs adding other submodules (#14421, #14435 and older ones), and libc/include/FileStream.hpp with libc PRs. This PR only adds the existing __stdinp_nid_postfix declaration there. #14337 and #14429 touch libcurl/Export.cpp for the exports listed above, which this PR leaves to them.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #14429 (merge order: this PR is rebased onto it once it lands, keeping its implementations and one public declaration per export)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5108047513 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-01T14:01:42Z. --- ### What Implements 57 libcurl exports as adapters over libcurl 7.81.0, a new submodule at `3rdparty/curl` (tag `curl-7_81_0`). It is built from source by `core/libs/prx/libcurl/CMakeLists.txt` (CMake `ExternalProject`), statically, with the bundled mbedtls (TLS) and nghttp2 (HTTP/2) of `libSceSsl` and `libSceHttp2`; DICT, FTP, GOPHER, IMAP, LDAP, MQTT, POP3, RTSP, SMB, SMTP, TELNET and TFTP are disabled. The console's export set matches libcurl 7.73–7.85; its exact version is unknown and recorded in the debt file. - **Easy interface:** `curl_easy_init`, `cleanup`, `duphandle`, `reset`, `perform`, `pause`, `recv`, `send`, `upkeep`, `strerror`, `option_by_id`/`by_name`/`next`. - **`curl_easy_setopt`** reads the guest's SysV variadic argument by option type. A guest `long` is 64-bit and throws `std::out_of_range` where it does not fit a 32-bit host `long`; `curl_off_t`, pointers, slists and blobs pass through. - **Callbacks:** each `*FUNCTION` option goes through a per-handle host trampoline that calls the guest function with the guest pointer of its `*DATA` option. The context is copied by `duphandle` and cleared by `reset`. - **Defaults on guest streams:** libcurl's default write, read and header paths, and `CURLOPT_STDERR`, use guest `FILE*` streams through the guest stdio exports. - **`curl_easy_getinfo`** writes 64-bit guest `long`s and passes the other output types through. - **Multi and share:** `curl_multi_init`, `cleanup`, `add_handle`, `remove_handle`, `perform`, `info_read`, `timeout`, `wakeup`, `socket_all`, `wait`/`poll` without extra descriptors, `curl_multi_setopt` (LONG, OFF_T and the timer callback), `curl_multi_strerror`; `curl_share_init`, `cleanup`, `setopt` (with guest lock callbacks), `strerror`. - **URL API:** `curl_url`, `curl_url_cleanup`, `curl_url_dup`, `curl_url_get`, `curl_url_set`. - **MIME:** `curl_mime_init`, `free`, `addpart`, `name`, `filename`, `type`, `encoder`, `data`, `filedata`, `headers`, `subparts`. - **Utility:** `curl_global_init`, `curl_global_cleanup`, `curl_global_sslset`, `curl_version`, `curl_version_info`, `curl_getdate`, `curl_getenv`, `curl_pushheader_bynum`, `curl_pushheader_byname`. **Memory:** libcurl allocates through the guest libc heap (`malloc`, `free`, `realloc`, `calloc`, `strdup` of libc). Those functions are installed when the library loads, and passed again through `curl_global_init_mem` by `curl_global_init` and by the implicit initialization of `curl_easy_init`. Strings and lists libcurl returns can therefore be freed with the guest `free` or `curl_free`. Lists built on the guest heap can be handed to libcurl with ownership (`curl_mime_headers(…, 1)`). **Left to other PRs:** `curl_slist_append`, `curl_slist_free_all`, `curl_free`, `curl_escape`, `curl_unescape`, `curl_easy_escape` and `curl_easy_unescape` (#14429), and `curl_strequal`/`curl_strnequal` (#14337). They stay stubs here, so until #14429 lands, strings libcurl returns (`curl_url_get`, `curl_getenv`, …) can only be released with the guest `free`; with #14429, `curl_free` releases them. Because libcurl uses the guest heap, the guest-heap lists and `curl_free` of #14429 work with this library in either merge order, and libcurl's own `curl_strequal` is renamed inside the backend so it does not clash with #14337's export. **Still stubs** (debt file): - `curl_formadd`/`formget`/`formfree`; - the `curl_m*printf` family; - `curl_global_init_mem` with guest allocator callbacks; - `curl_mime_data_cb`; - `curl_multi_assign`, `fdset`, `socket` and `socket_action`, plus the socket callback options and `CURLINFO_ACTIVESOCKET`/`LASTSOCKET`. The guest socket registry has no reverse lookup for sockets libcurl owns; - `CURLMOPT_PUSHFUNCTION`. `CURLOPT_SSL_CTX_FUNCTION`/`DATA` throw `std::invalid_argument`, because the TLS context is a host mbedtls object. ### Tested Windows 11, host harness with the Qt MinGW 13.1 toolchain against the static libcurl, mbedtls and nghttp2 built by the repository CMake integration (`anyps5_curl_build` builds). No network access; transfers use `file://` URLs. The six tests in `core/libs/prx/libcurl/tests` pass: - **`CurlTransfers`:** - a guest write callback receives the exact bytes; - the default write path writes into a guest `FILE*` given as `WRITEDATA`; - an upload through a guest read callback, and a header callback; - an xferinfo callback that aborts, with `CURLE_ABORTED_BY_CALLBACK`; - `getinfo` of `RESPONSE_CODE`, `SIZE_DOWNLOAD_T`, `EFFECTIVE_URL`, `CONTENT_TYPE` and `PRIVATE`; - `duphandle` keeping and `reset` dropping the guest callbacks; - HSTS read and write callbacks through three rounds of `duphandle` and cleanup, then the original handle; - the same transfer through `curl_multi_perform`/`curl_multi_wait`, with `CURLMOPT_TIMERFUNCTION` called. - **`CurlHandles`, `CurlOptions`, `CurlUrl`, `CurlSlistMime`, `CurlUtility`:** handles and share locks, option metadata, every `curl_url_get`/`set` part (results freed with the guest `free`), MIME parts with guest-heap headers handed over with ownership, version information, dates, error strings and environment lookups. Every source and test compiles with the real `APS5_VABI`. `tools/check_conventions.py --base upstream/main` and `core/libs/tests/test_public_headers.py --audit-only` pass. A full CMake configure is not possible here (SDL2/ffmpeg submodules missing), so the guest build and CTest run are left to CI. `pr_overlap.py`: `.gitmodules` is shared with PRs adding other submodules (#14421, #14435 and older ones), and `libc/include/FileStream.hpp` with libc PRs. This PR only adds the existing `__stdinp_nid_postfix` declaration there. #14337 and #14429 touch `libcurl/Export.cpp` for the exports listed above, which this PR leaves to them. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #14429 (merge order: this PR is rebased onto it once it lands, keeping its implementations and one public declaration per export) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-01 14:46:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T14:46:45Z.

Review: COMMENTED


Reviewed in part — no blocking findings so far

The rename pairs, the libcurl build wiring and the curl_easy_setopt argument dispatch that I read are consistent with the PR body, but I did not read the transfer trampolines, the handle-copy and reset code, most of the 1,071 changed lines of Export.cpp, or the test files, so this is a partial result and not an approval.

What I ran

  • Exact head c885095a08272573f46d01c7eb7893aad020aa2b, base f1a7b02028 (the precheck base). Four commits: 6b56723d60, 39ec6988ef, 7f509ae14c, c885095a08.
  • Environment: Linux, /usr/bin/python3 3.11.2, no build.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448
  • ABI audit by hand (helper absent from the head tree): python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c885095a08272573f46d01c7eb7893aad020aa2b --json (exit 0; passed_with_warnings; 174 findings, 176 symbols). Of the 174, 83 are export-removed and 83 are definition-not-found: the plain curl_* names whose _nid_postfix replacements are defined in the head. For all 83 pairs the computed NIDs are equal. The other 8 are public-declaration-not-found for test callbacks (Abort, Read, Write, Timer, Lock, Unlock, HstsRead, HstsWrite) defined in tests/; curl_strequal and curl_strnequal have no finding.
  • CMake read at head: core/libs/prx/libcurl/CMakeLists.txt lines 1-60 (the ExternalProject build of 3rdparty/curl, its backend options, the mbedtls and nghttp2 targets it requires, and the disabled protocols). Lines 61-108 were not read.
  • curl_easy_setopt read at head (core/libs/prx/libcurl/Export.cpp lines 852-895) together with HostLong (lines 79-82): the guest's variadic argument is read by option type, a 64-bit guest long that does not fit the host long throws std::out_of_range, and unknown options are passed on without reading arguments.

Results

Precheck report, checks table, unedited (/dev/shm/reviewer-run/precheck/14448/report.md):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c885095a08272573f46d01c7eb7893aad020aa2b
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8 --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run here. The tests need a built libcurl backend.

Findings

Blocking: none found in the parts read.

Non-blocking:

  • HostLong throws for a guest long outside the host long range. On a platform where long is 32 bits (Windows), a guest value that a title expects to pass would fail the call with a C++ exception rather than an error code. The PR body says so; the author should confirm that a title never passes such a value on the paths that matter.
  • Options that the port does not implement (the socket callbacks and the SSL context and conversion callbacks) throw NotImplemented or invalid_argument; the debt file should list each one.

Sources

Not verified

  • Not read: CurlTypes.hpp and CurlHost.hpp; the transfer, trampoline and duplicate or reset code in Export.cpp; lines 61-108 of CMakeLists.txt; all seven test files (tests/Curl*.cpp).
  • The libcurl 7.81.0 backend was not built; the console's libcurl version (the PR says it is unknown) was not checked.
  • Hosted: at this head conventions, eligibility, library-portability and report were queued at review time.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728679459 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5728679459). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T14:46:45Z. **Review:** COMMENTED --- # Reviewed in part — no blocking findings so far The rename pairs, the libcurl build wiring and the `curl_easy_setopt` argument dispatch that I read are consistent with the PR body, but I did not read the transfer trampolines, the handle-copy and reset code, most of the 1,071 changed lines of `Export.cpp`, or the test files, so this is a partial result and not an approval. ## What I ran - Exact head `c885095a08272573f46d01c7eb7893aad020aa2b`, base `f1a7b02028` (the precheck base). Four commits: `6b56723d60`, `39ec6988ef`, `7f509ae14c`, `c885095a08`. - Environment: Linux, `/usr/bin/python3` 3.11.2, no build. - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448` - ABI audit by hand (helper absent from the head tree): `python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c885095a08272573f46d01c7eb7893aad020aa2b --json` (exit 0; `passed_with_warnings`; 174 findings, 176 symbols). Of the 174, 83 are `export-removed` and 83 are `definition-not-found`: the plain `curl_*` names whose `_nid_postfix` replacements are defined in the head. For all 83 pairs the computed NIDs are equal. The other 8 are `public-declaration-not-found` for test callbacks (`Abort`, `Read`, `Write`, `Timer`, `Lock`, `Unlock`, `HstsRead`, `HstsWrite`) defined in `tests/`; `curl_strequal` and `curl_strnequal` have no finding. - CMake read at head: `core/libs/prx/libcurl/CMakeLists.txt` lines 1-60 (the `ExternalProject` build of `3rdparty/curl`, its backend options, the mbedtls and nghttp2 targets it requires, and the disabled protocols). Lines 61-108 were not read. - `curl_easy_setopt` read at head (`core/libs/prx/libcurl/Export.cpp` lines 852-895) together with `HostLong` (lines 79-82): the guest's variadic argument is read by option type, a 64-bit guest `long` that does not fit the host `long` throws `std::out_of_range`, and unknown options are passed on without reading arguments. ## Results Precheck report, checks table, unedited (`/dev/shm/reviewer-run/precheck/14448/report.md`): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c885095a08272573f46d01c7eb7893aad020aa2b` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c885095a08272573f46d01c7eb7893aad020aa2b --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448/head-c885095a0827-71da5ff8 --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ## Negative control Not run here. The tests need a built libcurl backend. ## Findings **Blocking:** none found in the parts read. **Non-blocking:** - `HostLong` throws for a guest `long` outside the host `long` range. On a platform where `long` is 32 bits (Windows), a guest value that a title expects to pass would fail the call with a C++ exception rather than an error code. The PR body says so; the author should confirm that a title never passes such a value on the paths that matter. - Options that the port does not implement (the socket callbacks and the SSL context and conversion callbacks) throw `NotImplemented` or `invalid_argument`; the debt file should list each one. ## Sources - `curl_easy_setopt` at head: https://github.com/boykopovar/AnyPS5/blob/c885095a08272573f46d01c7eb7893aad020aa2b/core/libs/prx/libcurl/Export.cpp#L852-L895 - `HostLong` at head: https://github.com/boykopovar/AnyPS5/blob/c885095a08272573f46d01c7eb7893aad020aa2b/core/libs/prx/libcurl/Export.cpp#L79-L82 - CMake build at head: https://github.com/boykopovar/AnyPS5/blob/c885095a08272573f46d01c7eb7893aad020aa2b/core/libs/prx/libcurl/CMakeLists.txt#L1-L60 ## Not verified - Not read: `CurlTypes.hpp` and `CurlHost.hpp`; the transfer, trampoline and duplicate or reset code in `Export.cpp`; lines 61-108 of `CMakeLists.txt`; all seven test files (`tests/Curl*.cpp`). - The libcurl 7.81.0 backend was not built; the console's libcurl version (the PR says it is unknown) was not checked. - Hosted: at this head `conventions`, `eligibility`, `library-portability` and `report` were queued at review time.
THEMANnt commented 2026-11-01 15:07:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-11-01T15:07:47Z.

Review: DISMISSED


Reviewed current head c885095a08272573f46d01c7eb7893aad020aa2b.

[P1] Make curl's Windows nonblocking capability probe work with the supported compiler — CMakeLists.txt:27 (backend configuration options). The pinned curl 7.81.0 probe CMake/CurlTests.c:312 passes an int* to ioctlsocket, which requires u_long*. Both the project's WinLibs GCC 15.2 r7 and MSYS2 GCC 16.2 reject this as an incompatible-pointer error. The ExternalProject configure consequently leaves HAVE_IOCTLSOCKET_FIONBIO unset, and the backend build fails in lib/nonblock.c:83 with no non-blocking method was found/used/set. Please handle this old dependency probe in the integration, or update the pinned backend, and verify a fresh configure/build with the project's Windows compiler.

Control: setting the correct capability in the isolated backend cache allows it to build, after which all six supplied curl adapter suites pass with the real guest ABI. That control uses host-backed allocator/stdio support and bypasses application-heap initialization and guest-arena tracking; it does not validate full guest-heap integration. The untouched backend configuration fails, so this is not a clean build pass.

The new head fixes the earlier public-header dependency: the umbrella header now compiles with only the repository's public include paths. I am not carrying that older-head finding forward. Whitespace and conventions pass. Depends on #14429.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728749698 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5728749698). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-11-01T15:07:47Z. **Review:** DISMISSED --- Reviewed current head `c885095a08272573f46d01c7eb7893aad020aa2b`. **[P1] Make curl's Windows nonblocking capability probe work with the supported compiler — `CMakeLists.txt:27` (backend configuration options).** The pinned curl 7.81.0 probe `CMake/CurlTests.c:312` passes an `int*` to `ioctlsocket`, which requires `u_long*`. Both the project's WinLibs GCC 15.2 r7 and MSYS2 GCC 16.2 reject this as an incompatible-pointer error. The ExternalProject configure consequently leaves `HAVE_IOCTLSOCKET_FIONBIO` unset, and the backend build fails in `lib/nonblock.c:83` with `no non-blocking method was found/used/set`. Please handle this old dependency probe in the integration, or update the pinned backend, and verify a fresh configure/build with the project's Windows compiler. Control: setting the correct capability in the isolated backend cache allows it to build, after which all six supplied curl adapter suites pass with the real guest ABI. That control uses host-backed allocator/stdio support and bypasses application-heap initialization and guest-arena tracking; it does not validate full guest-heap integration. The untouched backend configuration fails, so this is not a clean build pass. The new head fixes the earlier public-header dependency: the umbrella header now compiles with only the repository's public include paths. I am not carrying that older-head finding forward. Whitespace and conventions pass. Depends on #14429.
MarcZX10 commented 2026-11-01 15:28:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T15:28:06Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Six wrappers let libcurl write guest out-pointers without the GuestArena::HostWrite bracket that the repository requires for writes made by a native library, so the change breaks that rule; the other fourteen files were read and give only non-blocking items.

What I ran

  • Exact head c50a51e61d5847db9cc0084418c95673d47dee57. Base f1a7b02028 (precheck base); merge base 785ad26398. The head adds one commit (c50a51e61d) after the reviewed head c885095a08; the compare shows only core/libs/prx/libcurl/CMakeLists.txt changed (one line).
  • Read: all 15 changed files, over six read-only subagents (file ranges, Export.cpp split at line 640) and by me. Files unchanged since c885095a08 were read there.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448c
  • ABI audit by hand (helper absent from the head tree): python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c50a51e61d5847db9cc0084418c95673d47dee57 --json
  • Submodule pin: the gitlink 801bd5138c equals the commit that tag curl-7_81_0 resolves to (read with gh api).

Results

Check Result Note
Diff check passed
Conventions and template passed
Mergeability passed
Export names and NIDs passed 83 renames keep NIDs
Host writes into guest memory failed six native writes unbracketed
Test quality (by hand) passed non-blocking gaps only
Build and runtime tests not run no build
Negative controls not run needs a build
Hosted CI not run queued at review time
Precheck output and commands

Commands: the precheck and the ABI audit listed above, and gh api reads of the tag and the compare.

Precheck checks table (unedited):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c50a51e61d5847db9cc0084418c95673d47dee57
conventions_and_pr_template passed /marc/Conlyse-VIEJO/.venv/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448c/pr-body.md
changed_export_abi_audit failed /marc/Conlyse-VIEJO/.venv/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /marc/Conlyse-VIEJO/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448c/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /marc/Conlyse-VIEJO/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run. The new tests are C++ and need a build.

Findings

Blocking

  1. Six native writes into guest memory lack the required bracket. docs/dev/CONVENTIONS.md ("Host writes into guest memory") requires a GuestArena::HostWrite over the destination for any write a native library makes into guest memory. In core/libs/prx/libcurl/Export.cpp at c50a51e61d5847db9cc0084418c95673d47dee57:

    • curl_easy_recv (lines 702-705): libcurl writes *n; only buffer is bracketed.
    • curl_easy_send (lines 707-709): libcurl writes *n; no bracket.
    • curl_easy_getinfo (lines 896-906): libcurl writes the output for non-LONG types. The LONG path stores after the call with host code and is fine.
    • curl_multi_poll (lines 913-916): libcurl writes *ret.
    • curl_multi_wait (lines 1017-1020): libcurl writes *ret.
    • curl_multi_info_read (lines 1083-1085): libcurl writes *msgs_in_queue.

    Smallest fix: bracket each out-pointer the same way the buffer already is, for the whole native call. For curl_easy_recv:

        GuestArena::HostWrite write(buffer, buflen);
        GuestArena::HostWrite count(n, n ? sizeof(*n) : 0);
        return ::curl_easy_recv(curl, buffer, buflen, n);
    

    Rerun the precheck and the six libcurl test executables on the new head.

Non-blocking

  • Null handles and null outputs: curl_easy_setopt, duphandle and reset use the FindEasy result without checking it (lines 874-886, 940, 981). getinfo returns CURLE_UNKNOWN_OPTION for a null handle (895) where setopt returns CURLE_BAD_FUNCTION_ARGUMENT (854). A null output is passed to libcurl and then dereferenced when libcurl returns OK (902-903, 1166-1168); guard it explicitly.
  • Shares: when FindShare returns null, curl_share_setopt is called without its argument for SHARE, UNSHARE, LOCKFUNC, UNLOCKFUNC and USERDATA (1036). The lock and unlock functions are installed before their context slots are stored (1054-1061), and ShareLock calls context->lock unconditionally (688).
  • Options outside the multi whitelist are forwarded with nullptr (1116-1117). This matters only for options newer than the pinned version.
  • SSH_HOSTKEYFUNCTION is a function option forwarded unwrapped by the default branch (603). Latent, because SSH is disabled.
  • A NULL WRITEDATA or READDATA with no callback set makes the fallback throw std::runtime_error through libcurl's C frames (118, 124; FileStream.hpp 396-399).
  • HostLong throws std::out_of_range where long is 32-bit (80-83). This is already in the debt file.
  • curl_easy_send reads the guest buffer without a host-read preparation (709). This is a convention question; its relevance to curl buffers is not verified.
  • The new CMake line downgrades three diagnostics to warnings for GNU and Clang in the backend only. The superproject's sanitizer and MinGW compile options are not passed to the backend, so a sanitizer build leaves it uninstrumented (not verified here).
  • docs/dev/debt/libcurl.md: the NID table shrank from 85 rows to 2, and the catalogue links and image hash were removed. The NID evidence is no longer in the repository.
  • CurlHost.hpp asserts layouts for eight host types but not for guest_curl_version_info_data, guest_curl_httppost, guest_curl_forms, guest_curl_sockaddr or guest_curl_waitfd. Mixed int64_t/size_t qualification in CurlTypes.hpp. A redundant __stdinp_nid_postfix declaration in FileStream.hpp (408).
  • Tests: CurlUtility checks CURLVERSION_FIRST by pointer identity (61); getenv is checked only for an absent variable (58-59); CurlSlistMime checks return codes only (30-57); the count in CurlHandles (38-40) is never asserted; the date test passes only if zone-less input is read as UTC (43-44); curl_global_cleanup runs without an init (62); the Require helpers abort without a message; CurlSlistMime leaves curl-mime-test.tmp behind if it aborts early (50-57).
  • CurlTransfers.cpp 237-238 passes if the second transfer writes nothing, because the bytes are the same as before. The HSTS test (89-121) asserts callback counts only. CurlUrl.cpp does not read back USER, PASSWORD or OPTIONS (105), though the PR body says every curl_url_get/set part is covered. FileUrl does not percent-encode the path (60-63).
  • Style: InventoryExports.hpp uses #ifndef rather than #pragma once. The backend targets must be defined before the build (implicit ordering).

Sources

Not verified

  • libcurl 7.81.0 behaviour for NULL out-pointers, NULL handles and unseekable inputs: 3rdparty/curl is not checked out locally, so the sources were not read (the pin itself was checked).
  • The runtime effect of the unbracketed writes on macOS and Windows: not run.
  • The new CMake line was not executed.
  • Build, unit tests and negative controls: not run. The Windows run in the PR body is the author's report.
  • Hosted CI: queued at review time.

To get this to a good state

  • Bracket the six out-pointer writes with GuestArena::HostWrite for the duration of each native call, as in the example above.
  • Rerun the precheck, and the six libcurl test executables, on the new head.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5728818589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5728818589). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T15:28:06Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Six wrappers let libcurl write guest out-pointers without the `GuestArena::HostWrite` bracket that the repository requires for writes made by a native library, so the change breaks that rule; the other fourteen files were read and give only non-blocking items. ## What I ran - Exact head `c50a51e61d5847db9cc0084418c95673d47dee57`. Base `f1a7b02028` (precheck base); merge base `785ad26398`. The head adds one commit (`c50a51e61d`) after the reviewed head `c885095a08`; the compare shows only `core/libs/prx/libcurl/CMakeLists.txt` changed (one line). - Read: all 15 changed files, over six read-only subagents (file ranges, `Export.cpp` split at line 640) and by me. Files unchanged since `c885095a08` were read there. - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /dev/shm/reviewer-run/precheck/14448c` - ABI audit by hand (helper absent from the head tree): `python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base f1a7b02028 --head c50a51e61d5847db9cc0084418c95673d47dee57 --json` - Submodule pin: the gitlink `801bd5138c` equals the commit that tag `curl-7_81_0` resolves to (read with `gh api`). ## Results | Check | Result | Note | | --- | --- | --- | | Diff check | passed | | | Conventions and template | passed | | | Mergeability | passed | | | Export names and NIDs | passed | 83 renames keep NIDs | | Host writes into guest memory | failed | six native writes unbracketed | | Test quality (by hand) | passed | non-blocking gaps only | | Build and runtime tests | not run | no build | | Negative controls | not run | needs a build | | Hosted CI | not run | queued at review time | <details><summary>Precheck output and commands</summary> Commands: the precheck and the ABI audit listed above, and `gh api` reads of the tag and the compare. Precheck checks table (unedited): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f1a7b02028ae50adaf6c5aaaef892a51841b25bf...c50a51e61d5847db9cc0084418c95673d47dee57` | | conventions_and_pr_template | passed | `/marc/Conlyse-VIEJO/.venv/bin/python3 tools/check_conventions.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /dev/shm/reviewer-run/precheck/14448c/pr-body.md` | | changed_export_abi_audit | failed | `/marc/Conlyse-VIEJO/.venv/bin/python3 tools/pr_abi_audit.py --base f1a7b02028ae50adaf6c5aaaef892a51841b25bf --head c50a51e61d5847db9cc0084418c95673d47dee57 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/marc/Conlyse-VIEJO/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14448c/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/marc/Conlyse-VIEJO/.venv/bin/python3 /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14448c/head-c50a51e61d58-c807c4ac --json .gitmodules 3rdparty/curl core/libs/prx/libc/include/FileStream.hpp core/libs/prx/libcurl/CMakeLists.txt core/libs/prx/libcurl/Export.cpp core/libs/prx/libcurl/include/CurlTypes.hpp core/libs/prx/libcurl/include/InventoryExports.hpp core/libs/prx/libcurl/src/CurlHost.hpp core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp docs/dev/debt/libcurl.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | </details> ## Negative control Not run. The new tests are C++ and need a build. ## Findings **Blocking** 1. **Six native writes into guest memory lack the required bracket.** `docs/dev/CONVENTIONS.md` (\"Host writes into guest memory\") requires a `GuestArena::HostWrite` over the destination for any write a native library makes into guest memory. In `core/libs/prx/libcurl/Export.cpp` at `c50a51e61d5847db9cc0084418c95673d47dee57`: - `curl_easy_recv` (lines 702-705): libcurl writes `*n`; only `buffer` is bracketed. - `curl_easy_send` (lines 707-709): libcurl writes `*n`; no bracket. - `curl_easy_getinfo` (lines 896-906): libcurl writes the output for non-LONG types. The LONG path stores after the call with host code and is fine. - `curl_multi_poll` (lines 913-916): libcurl writes `*ret`. - `curl_multi_wait` (lines 1017-1020): libcurl writes `*ret`. - `curl_multi_info_read` (lines 1083-1085): libcurl writes `*msgs_in_queue`. Smallest fix: bracket each out-pointer the same way the buffer already is, for the whole native call. For `curl_easy_recv`: ```cpp GuestArena::HostWrite write(buffer, buflen); GuestArena::HostWrite count(n, n ? sizeof(*n) : 0); return ::curl_easy_recv(curl, buffer, buflen, n); ``` Rerun the precheck and the six libcurl test executables on the new head. **Non-blocking** - Null handles and null outputs: `curl_easy_setopt`, `duphandle` and `reset` use the `FindEasy` result without checking it (lines 874-886, 940, 981). `getinfo` returns `CURLE_UNKNOWN_OPTION` for a null handle (895) where `setopt` returns `CURLE_BAD_FUNCTION_ARGUMENT` (854). A null output is passed to libcurl and then dereferenced when libcurl returns OK (902-903, 1166-1168); guard it explicitly. - Shares: when `FindShare` returns null, `curl_share_setopt` is called without its argument for SHARE, UNSHARE, LOCKFUNC, UNLOCKFUNC and USERDATA (1036). The lock and unlock functions are installed before their context slots are stored (1054-1061), and `ShareLock` calls `context->lock` unconditionally (688). - Options outside the multi whitelist are forwarded with `nullptr` (1116-1117). This matters only for options newer than the pinned version. - `SSH_HOSTKEYFUNCTION` is a function option forwarded unwrapped by the default branch (603). Latent, because SSH is disabled. - A NULL `WRITEDATA` or `READDATA` with no callback set makes the fallback throw `std::runtime_error` through libcurl's C frames (118, 124; `FileStream.hpp` 396-399). - `HostLong` throws `std::out_of_range` where `long` is 32-bit (80-83). This is already in the debt file. - `curl_easy_send` reads the guest buffer without a host-read preparation (709). This is a convention question; its relevance to curl buffers is not verified. - The new CMake line downgrades three diagnostics to warnings for GNU and Clang in the backend only. The superproject's sanitizer and MinGW compile options are not passed to the backend, so a sanitizer build leaves it uninstrumented (not verified here). - `docs/dev/debt/libcurl.md`: the NID table shrank from 85 rows to 2, and the catalogue links and image hash were removed. The NID evidence is no longer in the repository. - `CurlHost.hpp` asserts layouts for eight host types but not for `guest_curl_version_info_data`, `guest_curl_httppost`, `guest_curl_forms`, `guest_curl_sockaddr` or `guest_curl_waitfd`. Mixed `int64_t`/`size_t` qualification in `CurlTypes.hpp`. A redundant `__stdinp_nid_postfix` declaration in `FileStream.hpp` (408). - Tests: `CurlUtility` checks `CURLVERSION_FIRST` by pointer identity (61); `getenv` is checked only for an absent variable (58-59); `CurlSlistMime` checks return codes only (30-57); the `count` in `CurlHandles` (38-40) is never asserted; the date test passes only if zone-less input is read as UTC (43-44); `curl_global_cleanup` runs without an init (62); the `Require` helpers abort without a message; `CurlSlistMime` leaves `curl-mime-test.tmp` behind if it aborts early (50-57). - `CurlTransfers.cpp` 237-238 passes if the second transfer writes nothing, because the bytes are the same as before. The HSTS test (89-121) asserts callback counts only. `CurlUrl.cpp` does not read back USER, PASSWORD or OPTIONS (105), though the PR body says every `curl_url_get`/`set` part is covered. `FileUrl` does not percent-encode the path (60-63). - Style: `InventoryExports.hpp` uses `#ifndef` rather than `#pragma once`. The backend targets must be defined before the build (implicit ordering). ## Sources - Rule: https://github.com/boykopovar/AnyPS5/blob/c50a51e61d5847db9cc0084418c95673d47dee57/docs/dev/CONVENTIONS.md#L19-L28 - Unbracketed writes: https://github.com/boykopovar/AnyPS5/blob/c50a51e61d5847db9cc0084418c95673d47dee57/core/libs/prx/libcurl/Export.cpp#L702-L705 (recv), #L707-L709 (send), #L896-L906 (getinfo), #L913-L916 (poll), #L1017-L1020 (wait), #L1083-L1085 (info_read) - Compile-flag change: https://github.com/boykopovar/AnyPS5/blob/c50a51e61d5847db9cc0084418c95673d47dee57/core/libs/prx/libcurl/CMakeLists.txt#L17-L21 ## Not verified - libcurl 7.81.0 behaviour for NULL out-pointers, NULL handles and unseekable inputs: `3rdparty/curl` is not checked out locally, so the sources were not read (the pin itself was checked). - The runtime effect of the unbracketed writes on macOS and Windows: not run. - The new CMake line was not executed. - Build, unit tests and negative controls: not run. The Windows run in the PR body is the author's report. - Hosted CI: queued at review time. ## To get this to a good state - Bracket the six out-pointer writes with `GuestArena::HostWrite` for the duration of each native call, as in the example above. - Rerun the precheck, and the six libcurl test executables, on the new head.
MarcZX10 commented 2026-11-01 21:15:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T21:15:09Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Two blocking defects at head 2051c37e46 (a NULL stdio stream that throws through libcurl's C frames, and two debt-file statements that do not match the code), and one unconfirmed header-routing question that needs the pinned libcurl source before merge.

What I ran

  • Exact head 2051c37e46a88582fad27ae2c54d55b299ee44a2, PR base f1a7b02028ae50adaf6c5aaaef892a51841b25bf.
  • Read-only: git -C /marc/AnyPS5 show 2051c37e46a88582fad27ae2c54d55b299ee44a2:<path> for the changed files, split across read-only file-range reads. I re-read the lines cited below myself.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir <scratch>.
  • Not built, not run.

Results

Check Result Note
Diff check passed
Conventions passed
ABI audit failed helper absent from the head tree; not rerun by hand for this review
Test quality failed helper absent from the head tree
Build and ctest not run needs a build; the libcurl submodule is empty in this checkout
Precheck report (unedited header and failing rows)
# PR precheck report — checks failed
changed_export_abi_audit | failed | pr_abi_audit.py (helper absent from the head tree)
test_quality_heuristics | failed | pr_test_quality.py (helper absent from the head tree)

Findings

Blocking

  1. core/libs/prx/libcurl/Export.cpp 477-490: CURLOPT_WRITEDATA and CURLOPT_READDATA store the guest's value as is, including NULL. The read and write trampolines then pass that NULL to the host stdio wrappers, which throw std::runtime_error on a null stream. The exception crosses libcurl's C frames. Fix: map NULL to the stdio default (stdout or stdin), which the constructor is reported to install, or return a libcurl abort code without throwing.
  2. docs/dev/debt/libcurl.md line 8 says memory libcurl returns can be released with curl_free. curl_free throws NotImplemented (Export.cpp 809-811). Fix: remove "or curl_free" until it is implemented.
  3. docs/dev/debt/libcurl.md line 14 says failed guest stdio rewinds throw std::runtime_error. The default seek returns CURL_SEEKFUNC_CANTSEEK on an ordinary failure, and only a random-device or null stream throws. Fix: correct the sentence.

Non-blocking

  • SSH_HOSTKEYFUNCTION has no case in the switch, so curl_easy_setopt forwards the guest function pointer to libcurl unchanged (the default branch around 604-605). SSH is compiled out, so libcurl never calls it here. Fix: add it to the NotImplemented group, or record it in the debt file.
  • Header bytes: with no HEADERFUNCTION set, the wrapper sends headers to WRITEFUNCTION with the header slot's data, not WRITEDATA. tests/CurlTransfers.cpp 247-249 pins this behaviour. Whether libcurl 7.81.0 does the same has to be checked against lib/sendf.c at the pinned tag before merge.
  • No trampoline catches exceptions. A guest callback that calls a throwing export unwinds through libcurl's frames (reported, not confirmed line by line).
  • tests/CurlSlistMime.cpp tests no slist API, so its name overstates its coverage (reported).

Sources

Not verified

  • Build, ctest and every new test: not run.
  • libcurl 7.81.0 behaviour: the submodule is empty in this checkout, so header routing and the NULL default are unverified.
  • The FileStream throw path for a null stream: read in the source, not run.

To get this to a good state

Fix blocking 1-3. Check the header-routing question against the pinned libcurl source. Rebuild and run the six libcurl tests on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5730307625 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5730307625). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T21:15:09Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Two blocking defects at head `2051c37e46` (a NULL stdio stream that throws through libcurl's C frames, and two debt-file statements that do not match the code), and one unconfirmed header-routing question that needs the pinned libcurl source before merge. ## What I ran - Exact head `2051c37e46a88582fad27ae2c54d55b299ee44a2`, PR base `f1a7b02028ae50adaf6c5aaaef892a51841b25bf`. - Read-only: `git -C /marc/AnyPS5 show 2051c37e46a88582fad27ae2c54d55b299ee44a2:<path>` for the changed files, split across read-only file-range reads. I re-read the lines cited below myself. - Precheck: `python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir <scratch>`. - Not built, not run. ## Results | Check | Result | Note | | - | - | - | | Diff check | passed | | | Conventions | passed | | | ABI audit | failed | helper absent from the head tree; not rerun by hand for this review | | Test quality | failed | helper absent from the head tree | | Build and ctest | not run | needs a build; the libcurl submodule is empty in this checkout | <details> <summary>Precheck report (unedited header and failing rows)</summary> ```text # PR precheck report — checks failed changed_export_abi_audit | failed | pr_abi_audit.py (helper absent from the head tree) test_quality_heuristics | failed | pr_test_quality.py (helper absent from the head tree) ``` </details> ## Findings **Blocking** 1. `core/libs/prx/libcurl/Export.cpp` 477-490: `CURLOPT_WRITEDATA` and `CURLOPT_READDATA` store the guest's value as is, including NULL. The read and write trampolines then pass that NULL to the host stdio wrappers, which throw `std::runtime_error` on a null stream. The exception crosses libcurl's C frames. Fix: map NULL to the stdio default (stdout or stdin), which the constructor is reported to install, or return a libcurl abort code without throwing. 2. `docs/dev/debt/libcurl.md` line 8 says memory libcurl returns can be released with `curl_free`. `curl_free` throws `NotImplemented` (`Export.cpp` 809-811). Fix: remove "or `curl_free`" until it is implemented. 3. `docs/dev/debt/libcurl.md` line 14 says failed guest stdio rewinds throw `std::runtime_error`. The default seek returns `CURL_SEEKFUNC_CANTSEEK` on an ordinary failure, and only a random-device or null stream throws. Fix: correct the sentence. **Non-blocking** - `SSH_HOSTKEYFUNCTION` has no case in the switch, so `curl_easy_setopt` forwards the guest function pointer to libcurl unchanged (the default branch around 604-605). SSH is compiled out, so libcurl never calls it here. Fix: add it to the NotImplemented group, or record it in the debt file. - Header bytes: with no `HEADERFUNCTION` set, the wrapper sends headers to `WRITEFUNCTION` with the header slot's data, not `WRITEDATA`. `tests/CurlTransfers.cpp` 247-249 pins this behaviour. Whether libcurl 7.81.0 does the same has to be checked against `lib/sendf.c` at the pinned tag before merge. - No trampoline catches exceptions. A guest callback that calls a throwing export unwinds through libcurl's frames (reported, not confirmed line by line). - `tests/CurlSlistMime.cpp` tests no slist API, so its name overstates its coverage (reported). ## Sources - NULL setters: https://github.com/boykopovar/AnyPS5/blob/2051c37e46a88582fad27ae2c54d55b299ee44a2/core/libs/prx/libcurl/Export.cpp#L477-L490 - curl_free: https://github.com/boykopovar/AnyPS5/blob/2051c37e46a88582fad27ae2c54d55b299ee44a2/core/libs/prx/libcurl/Export.cpp#L809-L811 - Debt file: https://github.com/boykopovar/AnyPS5/blob/2051c37e46a88582fad27ae2c54d55b299ee44a2/docs/dev/debt/libcurl.md#L8 and #L14 ## Not verified - Build, ctest and every new test: not run. - libcurl 7.81.0 behaviour: the submodule is empty in this checkout, so header routing and the NULL default are unverified. - The FileStream throw path for a null stream: read in the source, not run. ## To get this to a good state Fix blocking 1-3. Check the header-routing question against the pinned libcurl source. Rebuild and run the six libcurl tests on the new head.
MarcZX10 commented 2026-11-03 02:05:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T02:05:41Z.

Review: APPROVED


Reviewed — looks good

I reviewed all 15 changed files at head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 and found no blocking issue; the applicable hosted checks passed.

What I ran

Reviewed the full diff against PR base b28bb772177768f99874ca38f6252cd0139acf2a; the merge preview against current main (7feb37ee3e30e10139b483fb4df689d5b5b69ab8) was clean. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0. I did not build locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /tmp/anyps5-pr-precheck/14448-20261103
git diff --check b28bb772177768f99874ca38f6252cd0139acf2a cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863
python3 tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/14448-20261103/stack
python3 tools/pr_abi_audit.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 --json
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/14448-20261103/head-cc9dda4eb7cc-e8308592 --json core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp
gh pr checks 14448 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed No diff or convention errors
Merge preview passed Clean against current main
Export/NID audit passed All 83 renamed exports retain their computed NIDs
Test registration passed CMake's topic loop registers all six added tests
Hosted checks passed Linux, Windows and macOS relinker jobs passed; the separate Linux job was skipped
Local build and CTest not run No local build
Negative control not run No local exact-head test binary

The precheck's isolated snapshot did not contain the optional ABI and test-quality helper scripts. I ran the helpers from the workspace against the exact head. The ABI audit's warnings were the expected old-name/new-name pairs and test-only callback declarations; the test-quality heuristic's six “possibly unregistered” warnings are false positives because CMake constructs each source path from the topic loop.

Precheck table and hosted check output

Precheck table (unedited):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /tmp/anyps5-pr-precheck/14448-20261103/pr-body.md
changed_export_abi_audit failed helper missing from the isolated PR snapshot; workspace audit run separately
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5
build_dependent_cpp_tests not_applicable C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed helper missing from the isolated PR snapshot; workspace heuristic run separately
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

gh pr checks output:

conventions	pass	26s	https://github.com/boykopovar/AnyPS5/actions/runs/41486549384/job/125418354452
edge-watch (macos-15)	pass	50s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879879
edge-watch (macos-15-intel)	pass	3m8s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879865
eligibility	pass	5s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125418344950
labels	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/41486549299/job/125418342077
library-portability	pass	1m21s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553540/job/125418343853
register-context (macos-15-intel, Debug)	pass	1m12s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879867
register-context (macos-15-intel, Release)	pass	1m22s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880273
register-context (ubuntu-latest, Debug)	pass	43s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879887
register-context (ubuntu-latest, Release)	pass	37s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879840
relinker (macos-latest, clang++)	pass	4m31s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880007
relinker (macos-latest, clang++, x86_64)	pass	7m21s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879923
relinker (ubuntu-latest, g++)	pass	4m45s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879788
relinker (windows-latest, g++)	pass	10m11s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879774
windows	pass	26m1s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879745
write-watch (macos-15-intel)	pass	2m22s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880134
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423883361
relinker-asan	pass	2m19s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880109
report	pass	1m43s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553823/job/125418345614
write-watch (macos-15)	pass	56s	https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880272

Negative control

Assertion Change to code under test Did the new test fail?
Added libcurl behavior differs from the previous implementation No source mutation was made Not run locally; hosted CI does not provide this negative control

Findings

Blocking

None found after reading the complete 15-file diff, including the export wrappers, guest layouts, CMake, tests, and debt updates.

Non-blocking

The declared order is #14337 → #14429 → #14448. The current heads of #14337 and #14429 are not included in this branch, but each dependency and this PR preview cleanly against current main. The author states this branch will be rebased after #14429 lands; this approval covers only the current reviewed head.

Sources

Not verified

  • I did not run a local build, CTest, or PS5 console test. The hosted build and test jobs listed above are separate and are tied to this exact head.

To get this to a good state

No correction is requested for this reviewed head. After #14429 lands and this branch is rebased, I can rerun the same checks against the resulting head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5746256405 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5746256405). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T02:05:41Z. **Review:** APPROVED --- # Reviewed — looks good I reviewed all 15 changed files at head `cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863` and found no blocking issue; the applicable hosted checks passed. ## What I ran Reviewed the full diff against PR base `b28bb772177768f99874ca38f6252cd0139acf2a`; the merge preview against current `main` (`7feb37ee3e30e10139b483fb4df689d5b5b69ab8`) was clean. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0. I did not build locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14448 --output-dir /tmp/anyps5-pr-precheck/14448-20261103 git diff --check b28bb772177768f99874ca38f6252cd0139acf2a cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 python3 tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/14448-20261103/stack python3 tools/pr_abi_audit.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 --json python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/14448-20261103/head-cc9dda4eb7cc-e8308592 --json core/libs/prx/libcurl/tests/CurlHandles.cpp core/libs/prx/libcurl/tests/CurlOptions.cpp core/libs/prx/libcurl/tests/CurlSlistMime.cpp core/libs/prx/libcurl/tests/CurlTransfers.cpp core/libs/prx/libcurl/tests/CurlUrl.cpp core/libs/prx/libcurl/tests/CurlUtility.cpp gh pr checks 14448 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No diff or convention errors | | Merge preview | passed | Clean against current `main` | | Export/NID audit | passed | All 83 renamed exports retain their computed NIDs | | Test registration | passed | CMake's topic loop registers all six added tests | | Hosted checks | passed | Linux, Windows and macOS relinker jobs passed; the separate Linux job was skipped | | Local build and CTest | not run | No local build | | Negative control | not run | No local exact-head test binary | The precheck's isolated snapshot did not contain the optional ABI and test-quality helper scripts. I ran the helpers from the workspace against the exact head. The ABI audit's warnings were the expected old-name/new-name pairs and test-only callback declarations; the test-quality heuristic's six “possibly unregistered” warnings are false positives because CMake constructs each source path from the topic loop. <details><summary>Precheck table and hosted check output</summary> Precheck table (unedited): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863 --title feat(libcurl): implement 57 libcurl exports over libcurl 7.81.0 --body /tmp/anyps5-pr-precheck/14448-20261103/pr-body.md` | | changed_export_abi_audit | failed | helper missing from the isolated PR snapshot; workspace audit run separately | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `tools/pr_stack_check.py 14448 --repo boykopovar/AnyPS5` | | build_dependent_cpp_tests | not_applicable | `C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | helper missing from the isolated PR snapshot; workspace heuristic run separately | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | `gh pr checks` output: ```text conventions pass 26s https://github.com/boykopovar/AnyPS5/actions/runs/41486549384/job/125418354452 edge-watch (macos-15) pass 50s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879879 edge-watch (macos-15-intel) pass 3m8s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879865 eligibility pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125418344950 labels pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/41486549299/job/125418342077 library-portability pass 1m21s https://github.com/boykopovar/AnyPS5/actions/runs/41486553540/job/125418343853 register-context (macos-15-intel, Debug) pass 1m12s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879867 register-context (macos-15-intel, Release) pass 1m22s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880273 register-context (ubuntu-latest, Debug) pass 43s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879887 register-context (ubuntu-latest, Release) pass 37s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879840 relinker (macos-latest, clang++) pass 4m31s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880007 relinker (macos-latest, clang++, x86_64) pass 7m21s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879923 relinker (ubuntu-latest, g++) pass 4m45s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879788 relinker (windows-latest, g++) pass 10m11s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879774 windows pass 26m1s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423879745 write-watch (macos-15-intel) pass 2m22s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880134 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423883361 relinker-asan pass 2m19s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880109 report pass 1m43s https://github.com/boykopovar/AnyPS5/actions/runs/41486553823/job/125418345614 write-watch (macos-15) pass 56s https://github.com/boykopovar/AnyPS5/actions/runs/41486553445/job/125423880272 ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Added libcurl behavior differs from the previous implementation | No source mutation was made | Not run locally; hosted CI does not provide this negative control | ## Findings **Blocking** None found after reading the complete 15-file diff, including the export wrappers, guest layouts, CMake, tests, and debt updates. **Non-blocking** The declared order is #14337 → #14429 → #14448. The current heads of #14337 and #14429 are not included in this branch, but each dependency and this PR preview cleanly against current `main`. The author states this branch will be rebased after #14429 lands; this approval covers only the current reviewed head. ## Sources - The CMake topic loop registers the six added tests and sets their test commands: [CMakeLists.txt at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863/core/libs/prx/libcurl/CMakeLists.txt#L90-L106). - Guest-facing exports are implemented in [Export.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/cc9dda4eb7ccb247f5db6d5c688bcf2ab1e82863/core/libs/prx/libcurl/Export.cpp). ## Not verified - I did not run a local build, CTest, or PS5 console test. The hosted build and test jobs listed above are separate and are tied to this exact head. ## To get this to a good state No correction is requested for this reviewed head. After #14429 lands and this branch is rebased, I can rerun the same checks against the resulting head.
adriadam10 commented 2026-11-07 12:17:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-07T12:17:00Z.

Review: CHANGES_REQUESTED


#14429 and #14337 are merged, so this branch now conflicts with main in five files:

  • .gitmodules: keep curl next to the sqlite and fontconfig entries.
  • core/libs/prx/libcurl/CMakeLists.txt: main registers guest_curl and guest_curl_strings; keep those tests next to the curl backend wiring.
  • core/libs/prx/libcurl/Export.cpp: main now implements curl_slist_append, curl_slist_free_all, curl_free, the escape functions and curl_strequal/curl_strnequal. Keep those implementations and drop the stubs this PR still carries, as the PR body says, with one public declaration per export. Check that curl_free and the guest-heap lists still work with the heap hooks installed here.
  • core/libs/prx/libcurl/include/InventoryExports.hpp, docs/dev/debt/libcurl.md: drop the entries main already implemented and recount.

Please rebase onto current main and rerun the six libcurl/tests plus guest_curl and guest_curl_strings. The previous review points were all met at cc9dda4eb7, so only the merge needs another look.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5812143458 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14448#pullrequestreview-5812143458). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-07T12:17:00Z. **Review:** CHANGES_REQUESTED --- #14429 and #14337 are merged, so this branch now conflicts with `main` in five files: - `.gitmodules`: keep curl next to the sqlite and fontconfig entries. - `core/libs/prx/libcurl/CMakeLists.txt`: `main` registers `guest_curl` and `guest_curl_strings`; keep those tests next to the curl backend wiring. - `core/libs/prx/libcurl/Export.cpp`: `main` now implements `curl_slist_append`, `curl_slist_free_all`, `curl_free`, the escape functions and `curl_strequal`/`curl_strnequal`. Keep those implementations and drop the stubs this PR still carries, as the PR body says, with one public declaration per export. Check that `curl_free` and the guest-heap lists still work with the heap hooks installed here. - `core/libs/prx/libcurl/include/InventoryExports.hpp`, `docs/dev/debt/libcurl.md`: drop the entries `main` already implemented and recount. Please rebase onto current `main` and rerun the six `libcurl/tests` plus `guest_curl` and `guest_curl_strings`. The previous review points were all met at `cc9dda4eb7`, so only the merge needs another look.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!14448
No description provided.