[gnutls-devel] GnuTLS | Fix coverity in lib/ (!1092)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sat Oct 12 23:36:38 CEST 2019
Tim Rühsen commented on a discussion on lib/x509/x509.c: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_229672593
> goto cleanup;
> }
>
> - if (othername_oid && type == GNUTLS_SAN_OTHERNAME) {
> + /* ooid.data is only set if type == GNUTLS_SAN_OTHERNAME.
> + * We check ooid.data here instead of type to avoid false positives from
> + * static analyzers. See Coverity issue #1361513. */
> + if (othername_oid && ooid.data) {
I had the same concerns when seeing `type == GNUTLS_SAN_OTHERNAME` :-)
So I'll change the code to check for both then.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_229672593
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/20191012/548e5703/attachment-0001.html>
More information about the Gnutls-devel
mailing list