feat(libSceLibreSsl3): release BIO references through BIO_vfree #15599
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15599"
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-03T21:04:48Z.
What
BIO_vfreepreviously threw unconditionally. LibreSSL 4.0.0 bio_lib.c defines it as a void wrapper aroundBIO_free.The export now delegates once to the existing parent
BIO_free, discarding its return value. Null is a no-op, retained references are decremented, and final release follows the parent's callback/destructor and allocation rules. Its dedicated source file retains the original notices.BIO_new/memory BIO APIs and forwarded into this library. No second BIO layout or lifetime table is introduced.Neither path was measured on a console.
Tested
Ubuntu 26.04.1, kernel 7.0.0-42-generic, GCC 15, Release,
BUILD_TESTING=ON, on main086c0686c8, then again after merging main4741457fed. Windows and macOS were not compiled here. No title was run.guest_libressl3_bio_lifetime_testsafter every source change. It covers null, a memory BIO, retained references, callback veto, a custom destructor and chained ownership with recording guest allocators. It checks actual releases, callback/destructor counts and errno preservation.-j6.check_conventions.py --base origin/mainandgit diff --checkpass.4741457fed: all 14 LibreSSL3 tests pass, includingguest_libressl3_bio_lifetime. The only conflict was the pending-export count in the debt file, now 67 withBIO_vfreeexcluded.pr_overlap.pyexamined 1777 open PRs. Reported shared debt-count/insertion hunks require reconciliation with other library PRs; none implementsBIO_vfree. In particular, #12945 addsBIO_up_refand uses a separate 112-byte model. This wrapper uses the current parent's 104-byte BIO; future retain/release interoperability between those models needs reconciliation before combining them.I inspected every not-compared branch diff and confirmed that its
BIO_vfreeremains the unconditional placeholder. Their shared-file changes concern: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)Pull request closed