[gnutls-devel] GnuTLS | Fix uninitialized warning in pkcs11.c (!906)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Feb 13 09:24:37 CET 2019


Tim Rühsen commented on a discussion on tests/pkcs11/pkcs11-token-raw.c:

>  		exit(1);
>  	}
>  
> +	{ /* Testing a too small buffer */
> +		char buf[1];
> +		size_t size = sizeof(buf);
> +
> +		ret = gnutls_pkcs11_token_get_info("pkcs11:",

Sure, that's good. BTW if the 'url' is just "pkcs11:", the returned size is 32 (or 33 ? not 100% sure) but buf is empty.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/906#note_140847379
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/20190213/28d23b61/attachment.html>


More information about the Gnutls-devel mailing list