[gnutls-devel] GnuTLS | gnutls_init: Always initialize *session (!1652)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Oct 14 18:11:47 CEST 2022

Eric Blake commented:

See also issue #1414.

The fix proposed so far is incomplete - gnutls_init() has exit paths where *session is modified to the result of calloc() that has later been passed to gnutls_deinit(), which is a stale pointer.  Since there is code in the wild that DOES call gnutls_deinit() on this stale pointer, that is a double-free.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1136363080
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20221014/0495a68b/attachment.html>

More information about the Gnutls-devel mailing list