[gnutls-devel] GnuTLS | Fix coverity in lib/ (!1092)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Oct 10 18:13:51 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on lib/x509/x509.c: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_228916249

>  		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) {

Why was the type check removed? The code seems to me that can be called when it shouldn't.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1092#note_228916249
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/20191010/603b7c0a/attachment.html>


More information about the Gnutls-devel mailing list