fix(libSceLibreSsl): throw the documented exception for faulting store arguments #14179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14179"
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:35:15Z.
What
X509_STORE_set_flagsandX509_VERIFY_PARAM_set1_hostalready implement every defined input; their remainingNotImplemented_nid_no_patchcalls covered only inputs where the module faults, asdocs/dev/debt/libSceLibreSsl.mdrecords. Those paths now throwstd::invalid_argument, including the internalElementsandPushguards thatX509_STORE_free,X509_STORE_add_lookupandX509_VERIFY_PARAM_set1_hostreach;Pushnow rejectsnum_alloc <= 0and a negative count before any growth. The debt entry forX509_STORE_add_lookupnow states the stack-size throw and the leak on that path.Tested
Linux (Ubuntu 24.04, GCC 13), full build;
guest_libressl_x509_storeandguest_libressl_x509_store_allocatorpass. No title tested.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:15:43Z.
Review: APPROVED
Reviewed — looks good
The changed guards now raise the documented
std::invalid_argumentfor faulting inputs, and the updated tests distinguish that exception from other failures.What I ran
Reviewed head
224f67964a6233e03395b9cfbbe8db3bc3bba463against PR base1bc97b9527eaf6b56681cd3465bca67b75329161; the merge preview was clean. Environment: Linux x86_64, Python 3.11.2. No local build or CTest was run.Results
Raw hosted check summary
Negative control
No negative control was run; I did not alter these exception guards locally.
Sources
Not verified
To get this to a good state
No blocking issue remains from this review. The existing debt record describes these arguments as faulting, and the hosted Windows job passed.