[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 14:43:56 CET 2018
Nikos Mavrogiannopoulos started a new 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();
I'm afraid of this because it is an ABI change and may break applications printing info using this API. What about returning an empty string instead?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/827#note_124709444
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/9dc89865/attachment-0001.html>
More information about the Gnutls-devel
mailing list