[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 23:24:32 CET 2024




Xin Long commented: https://gitlab.com/gnutls/gnutls/-/merge_requests/1807#note_1772021419

buf is actually used in _gnutls13_recv_end_of_early_data(): when buf.length != 0, it returns error. Also, I'm not sure if buf.length == 0 means buf.allocd, so I just fixed the issue by simply adding a _gnutls_buffer_init() call in the beginning of the function in the version 3 post.

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


More information about the Gnutls-devel mailing list