[gnutls-devel] GnuTLS | Increase the limit of TLS PSK usernames (!1581)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Jun 7 11:10:45 CEST 2022
Hannes Reinecke commented on a discussion on lib/auth/psk.h: https://gitlab.com/gnutls/gnutls/-/merge_requests/1581#note_973648313
> inline static
> void _gnutls_copy_psk_username(psk_auth_info_t info, const gnutls_datum_t *username)
> {
> - assert(sizeof(info->username) > username->size);
> + assert(MAX_USERNAME_SIZE >= username->size);
> + gnutls_free(info->username);
> + info->username = gnutls_malloc(username->size + 1);
> + assert(info->username);
Yes, I think that would be good.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1581#note_973648313
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/20220607/fcbc1728/attachment-0001.html>
More information about the Gnutls-devel
mailing list