[gnutls-devel] GnuTLS | gnutls_buffer_append_data: avoid use-after-free in the callers (!1399)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Mar 9 18:24:15 CET 2021




Daiki Ueno commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525430010

>  		}
>  
>  		/* copy actual length */
> -		_gnutls_write_uint16(extdata->length - cur_length, lengthp);
> +		_gnutls_write_uint16(extdata->length - length_pos - 2,

Yes, exactly.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525430010
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/20210309/d86f9980/attachment-0001.html>


More information about the Gnutls-devel mailing list