[gnutls-devel] GnuTLS | Fix out-of-bounds memcpy in gnutls_realloc_zero() (!1592)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed May 18 14:03:35 CEST 2022

Tobias Heider commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1592#note_951086001

Right, as long as it never goes down to <= 1 or frees it explicitly gets freed. Tracking the original allocation size to make the logic more robust is not really possible with this API (and probably not worth it either).

In the end it is a time vs space tradeoff. I am fine with going for memory efficiency.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1592#note_951086001
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/20220518/bbe81fc0/attachment-0001.html>

More information about the Gnutls-devel mailing list