[openssl/openssl] ce101e: doc: document provider/library context cleanup ord...

1 view
Skip to first unread message

kovan

unread,
Mar 1, 2026, 2:07:36 PM (2 days ago) Mar 1
to openssl...@openssl.org
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: ce101e19abed882f8a66ec73f4f0c501435e4f1c
https://github.com/openssl/openssl/commit/ce101e19abed882f8a66ec73f4f0c501435e4f1c
Author: kovan <xau...@gmail.com>
Date: 2026-03-01 (Sun, 01 Mar 2026)

Changed paths:
M doc/man3/OSSL_LIB_CTX.pod
M doc/man3/OSSL_PROVIDER.pod

Log Message:
-----------
doc: document provider/library context cleanup order requirement

Document that providers must be unloaded with OSSL_PROVIDER_unload()
before their associated library context is freed with OSSL_LIB_CTX_free().
Calling OSSL_PROVIDER_unload() after the library context has been freed
results in undefined behavior (heap-use-after-free).

The warning is added to both OSSL_PROVIDER(3) and OSSL_LIB_CTX(3) man pages
to ensure users encounter it regardless of which documentation they consult.

Fixes #27522

Co-Authored-By: Claude Opus 4.5 <nor...@anthropic.com>

Reviewed-by: Neil Horman <nho...@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.o...@gmail.com>
MergeDate: Sun Mar 1 19:03:43 2026
(Merged from https://github.com/openssl/openssl/pull/29785)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
Reply all
Reply to author
Forward
0 new messages