[gnutls-devel] GnuTLS | p11tool: fix admin user PIN initialization (!776)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Oct 18 16:51:50 CEST 2018


Patrick Steuer started a new discussion on src/common.c:

> +	size_t len;
> +
> +	tmp = getpass(prompt);
> +	if (tmp == NULL) {
> +		pass[0] = 0;
> +		return;
> +	}
> +
> +	len = strlen(tmp);
> +	if (len >= max_pass_size) {
> +		pass[0] = 0;
> +		return;
> +	}
> +
> +	strcpy(pass, tmp);
> +	gnutls_memset(pass, 0, len);

Better zero tmp, not pass.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/776#note_109965208
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/20181018/91cb0e28/attachment-0001.html>


More information about the Gnutls-devel mailing list