feat(libSceLibreSsl3): accept null X509 item disposal #16689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16689"
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 MarrasFederico on 2026-11-07T13:27:57Z.
Supersedes #16185, which GitHub closed when the head fork was deleted. Earlier review comments and Windows checks are on #16185.
What
AUTHORITY_KEYID_freeandX509_CRL_freenow accept null as a no-op. All non-null objects remain unsupported and throw before dereference. Theirvoid(void*)declarations replace the unknown-signature placeholders; the bodies move out ofAdditionalExports.cpp.X509_EXTENSION_freeis left to the extension stack implementation (#17147).AdditionalExports.cppdeclares 63 still-unimplemented callable exports: 59 named and 4 known only by NID (matching the 63 table rows indocs/dev/debt/libSceLibreSsl3.mdand 19NotImplemented_nid_no_patchstubs inExport.cpp, after mergingmain79e407ded7).AUTHORITY_KEYID_freeandX509_CRL_free- not measured on a PS5; non-null object disposal remains unsupported and throws before dereference. The null no-op follows LibreSSL 4.0.0AUTHORITY_KEYID_free(x509_akeya.c),X509_CRL_free(x_crl.c) and theirASN1_item_freedispatcher (tasn_fre.c).Tested
Ubuntu 26.04.1 LTS, kernel 7.0.0-43-generic, GCC 15.2.0, Release,
BUILD_TESTING=ON, CMake 4.4.4 with Ninja 1.13.2 from a virtualenv. Mergedupstream/main(79e407ded7) with normal merge commit3a2ce6e25b(full3a2ce6e25ba700610dce3b1c97005985d4c41b06); published history was not rebased, squashed or force-pushed. Windows and macOS were not compiled here; no game title was run.core/libs/prx/libSceLibreSsl3/all.ctest -R 'libressl3' --output-on-failure: 100% tests passed out of 69 (exit 0).ctest -R '^guest_libressl3_x509' --output-on-failure: 100% tests passed out of 11 (exit 0).python3 tools/check_conventions.py --base upstream/main: "All conventions checks passed." (exit 0, 0 errors).python3 core/libs/tests/test_public_headers.py --audit-only: 413 libraries, 34519 exports: unique declarations and umbrella coverage verified.git diff --check upstream/main...HEAD: clean.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 gabichuuuuu on 2026-11-08T21:44:23Z.
Review: COMMENTED
Windows run of head
6602cf2910, merged ontomain095ff72367in one tree with other open PRs that touch different files (each PR's test is its own file, so they don't interact). Setup: Windows 11, WinLibs GCC 15.2 r7 (x86_64-ucrt-posix-seh, the CI toolchain), Release,BUILD_TESTING=ON.guest_libressl3_x509_item_freewith--repeat until-fail:5: 5 / 5 pass.maindoesn't have.The null cases match LibreSSL: each of these is an
ASN1_item_freewrapper, which returns early on null.