[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
Thu Dec 13 15:33:30 CET 2018
Peter Wu commented on a discussion on lib/pkcs11.c:
> goto cleanup;
> }
>
> - snprintf(output, *output_size, "%s", tn.modname);
> - *output_size = strlen(output);
> - ret = 0;
> - goto cleanup;
> + modname = tn.modname;
> + if (modname == NULL) {
> + gnutls_assert();
Code search through Github for `GNUTLS_PKCS11_TOKEN_MODNAME` or https://codesearch.debian.net/search?q=GNUTLS_PKCS11_TOKEN_MODNAME did not show users other than GnuTLS src/pkcs11.c
An empty value is a reasonable value though, so I'll change it anyway.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/827#note_124725325
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/20181213/05809939/attachment-0001.html>
More information about the Gnutls-devel
mailing list