[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 22:21:10 CEST 2022




Eric Blake commented:


regarding my earlier comment about __attribute__ malloc - it won't quite work (the _init functions don't return the malloc'd pointer, but instead assign it into an output parameter) - maybe the gcc folks will have better ideas of how to annotate pointers allocated in gnutls' style while still being able to track that the resulting variable is passed to the correct deinit function.  But as mentioned before, that's a different project than fixing the existing risk of client double-free bugs.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1136577533
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/0b163389/attachment.html>


More information about the Gnutls-devel mailing list