[gnutls-devel] GnuTLS | lib/nettle/pk.c: Add check for gnutls_malloc() (!1986)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Jul 15 16:51:55 CEST 2025
Daiki Ueno started a new discussion on lib/nettle/pk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1986#note_2628595506
> me = _gnutls_dsa_q_to_hash(params, &hash_len);
> spki.dsa_dig = MAC_TO_DIG(me->id);
> gen_data = gnutls_malloc(hash_len);
> + if (gen_data == NULL) {
I suspect we might not need to allocate this buffer in the first place, as it is 64-byte at maximum (see `MAX_HASH_SIZE`), and other branches in this function uses a statically allocated buffer.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1986#note_2628595506
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/20250715/90718151/attachment.html>
More information about the Gnutls-devel
mailing list