[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 20:40:56 CET 2021
Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/1399 was reviewed by Anderson Sasaki
--
Anderson Sasaki commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525521960
>
> ret =
> _gnutls_buffer_append_prefix(extdata, 16, 0);
OK, thanks for the clarification!
--
Anderson Sasaki commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525521961
> /* copy actual length */
> - _gnutls_write_uint16(extdata->length - cur_length, lengthp);
> + _gnutls_write_uint16(extdata->length - length_pos - 2,
OK!
--
Anderson Sasaki commented on a discussion on lib/ext/pre_shared_key.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525521963
> + gnutls_datum_t client_hello;
> +
> + client_hello.data = extdata->data+sizeof(mbuffer_st);
I think this is clear now.
--
Anderson Sasaki commented on a discussion on lib/ext/key_share.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399#note_525521965
>
> - /* write the total length later */
> - lengthp = &extdata->data[extdata->length];
OK!
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1399
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/9cd9806c/attachment-0001.html>
More information about the Gnutls-devel
mailing list