[gnutls-devel] GnuTLS | lib: fix two segfault issues caused by freeing uninitialized buf (!1807)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Feb 13 00:44:24 CET 2024

Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/1807 was reviewed by Daiki Ueno

Daiki Ueno started a new discussion on lib/tls13/early_data.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1807#note_1769865268

>  	if (!(session->internals.flags & GNUTLS_NO_END_OF_EARLY_DATA)) {
>  		ret = _gnutls_recv_handshake(
>  			session, GNUTLS_HANDSHAKE_END_OF_EARLY_DATA, 0, &buf);

As the content of `buf` is not used, maybe we could pass `NULL` to `_gnutls_recv_handshake` and remove the local variable entirely?

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1807
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/20240212/2e0beb30/attachment.html>

More information about the Gnutls-devel mailing list