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

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Oct 17 15:00:56 CEST 2022




Eric Blake commented on a discussion on lib/x509/crl.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1138076079

>  		if (result < 0) {
>  			gnutls_assert();
>  			gnutls_free(*crl);
> +                        *crl = NULL;

Oh. I didn't spot that. If I read the header right, that is only the case when GNUTLS_INTERNAL_BUILD is defined; but that appears to be the case in all of the gnutls code base?  So you are right that the code base is avoiding stale pointers in a lot more places than I thought on my first read through.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1138076079
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/20221017/4d7d8359/attachment-0001.html>


More information about the Gnutls-devel mailing list