[gnutls-devel] GnuTLS | bug in gnutls_init() (#1414)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Oct 25 07:15:03 CEST 2022




Daiki Ueno commented:


For applications that target newer C compiler and thus do not care much about portability, I would suggest always NULL initializing those `gnutls_*_t` so it works nicely with `__attribute__((cleanup(...)))` as in:
https://gitlab.com/dueno/quic-echo/-/blob/f21fed36f35efc3c8b3665bfbc9dbfc1482edb81/gnutls-glue.c#L268

That said, the proposed MR seems like a nice tightening.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1414#note_1147263859
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/20221025/7bde4053/attachment.html>


More information about the Gnutls-devel mailing list