[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 08:56:08 CET 2019


Nikos Mavrogiannopoulos 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:",

Thank you. I've amended it with some additional checks (e.g., that the size is as expected an each call). Let me know if that's ok.

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


More information about the Gnutls-devel mailing list