feat(libSceLibreSsl3): release BIO references through BIO_vfree #16654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16654"
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:24:42Z.
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. The dedicated source file retains the original notices.BIO_newand memory-BIO APIs. No second layout or lifetime table is introduced.183a7b6df3bb5495c75431121fb38d22646572c0,Export.cppcontains 6 remaining throwing placeholders. The debt fragment records the same count and excludes bothBIO_vfreeandPEM_read_RSAPrivateKey.Supersedes #15599, which GitHub closed when the head fork was deleted. Earlier review comments and Windows test results remain there.
Tested
November 21 update: head
2cb308ae7cmerges main at9950ae309c. The inventory conflict indocs/dev/debt/changes/libressl3-20171-inventory.mdwas resolved by keeping both exclusions:BIO_vfreefrom this PR andd2i_PKCS7from main, which leaves 5 pending exports. Linux: all 199 LibreSSL/LibreSSL3 tests passed,guest_libressl3_bio_lifetimepassed three runs, and conventions passed. Windows was not rerun at this head.Maintenance verification, November 16, 2026:
77b0c858391dc2b065b7614c9ec612c3bdc00d27mergesmain48d3ccecace42059931318e307617fa832fb83cfintocb8348822430e3fba282b05e7637350e7fa3a1a0through a normal merge (--no-ff) with zero conflicts and an unchanged 7-file PR delta (+304/-6). No published history was rewritten.main48d3ccecace4brings incc1c20e0dd181ac5410d99b28fe833cc323198c8(revert #21244), which restores bytewise capacity truncation incore/libs/prx/libc/src/WideConversion.cppand resolves the inherited hosted Windowsguest_multibyte_locale(wcstombs fills the capacity mid-character) failure from baselinee4caa07950f8.nice -n 19on Linux andIdlepriority on Windows.77b0c858391dc2b065b7614c9ec612c3bdc00d27:guest_libressl3_bio_lifetimeandguest_multibyte_locale, three runs each (--repeat until-fail:3) on Linux and three runs each on Windows, all passed.cb8348822430WideConversion.cppreproduced the exact hosted failure (guest_multibyte_locale,failed: wcstombs fills the capacity mid-character, exit code0xc0000409), and byte-exact restoration of themainsource (SHA256 DBA2EB68D4CD2FFDBFA0723C258E2ED86BEC5DFB5EA5F3C9E77788676BF237DA) rebuilt and passed cleanly.Export.cpp12 throwing placeholders;AdditionalExports.cpp52 (after #18760 onmain);ParentExports.cpp387 forwarders (after #18861 onmain). The folded document has one pending-export entry.python3 tools/check_conventions.py --base refs/review/current-main) have zero errors (the existing long-inventory warning remains), public-header audit (413 libraries, 34650 exports) and diff checks pass.main's pre-existing missing NKWebKit anchor (docs-nkwebkit-drop-readded-count-lines.md:5). With that unrelated fragment excluded in an isolated scratch simulation,debt_fold.py --checkand--show libSceLibreSsl3pass; no unrelated NKWebKit change is mixed into this SSL branch.main'sshutdownFlagsandForwardschanges. No macOS, console or title execution was performed.A pre-push merge-tree check against
mainbe4613dd73785558bb3cda5ea5f917f983b7fbd1was conflict-free. The exact tested head and merged baseline are recorded above; no zero-commits-behind claim is made.Overlap was checked against open PRs with manual comparison of inconclusive old-baseline conflicts. Other reported overlaps concern adjacent declarations, inventories or test registrations. #16529 dropped its competing
BIO_vfreeimplementation; this branch retains its own parent-BIO delegation.November 18 merge verification:
183a7b6df3bb5495c75431121fb38d22646572c0mergesmainata0a9c65768bc8fbad8e714fc2eb64e8ecb31d8d6. The merge retains the PEM RSA reader from #23155 and brings in the stdio readiness fix from #23167. On Linux Release with GCC 15,guest_libressl3_bio_lifetimepassed three consecutive runs. Conventions reported zero errors, the LibreSSL3 debt preview folded successfully, andgit diff --checkpassed.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-11-21T06:17:21Z.
Review: APPROVED
Reviewed — looks good
The BIO_vfree wrapper delegates to the existing BIO_free implementation, and the inspected source and test coverage support merging at head
183a7b6df3bb5495c75431121fb38d22646572c0.What I ran
No commands or tests were run; I inspected the prepared diff and targeted source through
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run during this review. Console ABI, BIO layout, and title execution are not verified, as recorded in the debt entry. No files were excluded from review; all seven changed files in the manifest were read.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T12:30:20Z.
Review: APPROVED
Reviewed — looks good
The review covers head
2cb308ae7c2a7e9f595e4f81d7e198ff37288d9d; the adapter delegates BIO release to the parent implementation, and the inspected code supports the claimed reference-count, callback, and destructor behavior.What I ran
No commands or tests were run in this review. The author reports Linux checks passed on this head; those results were not independently run here.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read all changed files listed in the manifest:
CMakeLists.txt,Export.cpp,include/Api.hpp,src/BioLifetime.cpp,tests/BioLifetime.cpp, and both debt documents. No changed files were excluded. I did not independently run tests or verify Windows, console ABI/layout, or console behavior.To get this to a good state
Nothing is required.
Pull request closed