fix(libSceLibreSsl): throw the documented exception for faulting arguments #14178
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14178"
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 rooklz on 2026-10-31T22:27:26Z.
What
Complete four libSceLibreSsl exports that were reported as unimplemented only because their invalid-input branches still called
NotImplemented_nid_no_patch:ASN1_INTEGER_get,SSL_select_next_proto,X509_VERIFY_PARAM_set_hostflagsandX509_VERIFY_PARAM_set1_ip_asc.For every defined input these functions already follow the behaviour and layouts in
docs/dev/debt/libSceLibreSsl.md; the remaining marker covered only inputs where the module faults or has undefined behaviour (an unrepresentable signed integer, a null protocol list/output, and null verify parameters or address text). Those debt entries already say the implementation throws there, so throwstd::invalid_argumentinstead of the unimplemented marker, as the digest exports do since0fed30252a. No console behaviour is newly claimed and the debt entries stay accurate.The existing tests already exercise both the valid inputs and the throwing branches; they now pin the documented exception type with a
RequireInvalidArgumenthelper.tools/progress.py: libSceLibreSsl 97 done / 304 todo -> 101 done / 300 todo; all libraries 8656/33237 (26.04%) -> 8660/33237 (26.06%).Tested
cmake -S . -B build-libressl -G Ninja -DCMAKE_BUILD_TYPE=Release -DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ONandcmake --build build-libressl --parallel: rc=0.ctest --test-dir build-libressl --output-on-failure: 542/542 passed, 0 failed (126.36 s).g++ -std=c++20 -fsyntax-onlyon the three changed sources and three changed tests: rc=0.python3 tools/progress.py: counts above.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 MarcZX10 on 2026-10-31T23:17:20Z.
Review: APPROVED
Reviewed — looks good
The exact head
e03a8b4dfbb6bf5cce270bd898dbca868ee58034changes the four documented invalid-input paths tostd::invalid_argument, and its hosted Windows checks compile and run the changed guest library tests successfully.What I ran
Reviewed against base
mainat1bc97b9527eaf6b56681cd3465bca67b75329161; the hosted Windows workflow merged the PR intomainand completed successfully. Environment: hosted Windows CI and local Linux x86_64 (glibc 2.36, Python 3.11.2, GCC 12.2.0). Local commands:The precheck passed diff validation, repository conventions/template checks, and the live stack/mergeability check. Its ABI-audit and test-quality helper invocations could not run because those helper scripts are absent from this PR's snapshot; the changed files contain no declaration changes, and I inspected the changed assertions directly. Hosted
windowsCI succeeded, including compilation and execution of changed guestcore/libstests;library-portabilityalso succeeded.Results
Not verified
Linux, relinker, register-context, and write-watch jobs were skipped. I did not run a local C++ build or CTest. The PR reports a local 542/542 CTest run, but I did not independently reproduce it.