[gnutls-devel] GnuTLS | Fix gnutls_pkcs11_token_get_info for short output buffers and fix a memleak (!827)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Nov 30 11:28:02 CET 2018


Peter Wu commented on a discussion on lib/pkcs11.c:

>  		len = p11_kit_space_strlen(str, str_max);
>  
>  	if (len + 1 > *output_size) {
> -		*output_size = len + 1;

That would be nice, but shouldn't `gnutls_pkcs11_obj_get_info` then be changed for consistency?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/827#note_121332508
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/20181130/ebc23129/attachment.html>


More information about the Gnutls-devel mailing list