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

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Oct 13 21:26:56 CEST 2022




Eric Blake commented:


I am not sure how to go about adding testsuite coverage for this one.

At some point, gnutls might want to consider marking gnutls_init with __attribute__((__malloc__, __malloc__(gnutls_deinit, 1))) so that code analyzers can more obviously spot bugs like calling free(session) or forgetting to call gnutls_deinit(session), but that is beyond the scope of this patch.

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


More information about the Gnutls-devel mailing list