[gnutls-devel] GnuTLS | lib: mark infinite loops explicitly (!1043)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Jul 9 19:23:17 CEST 2019




Nikos Mavrogiannopoulos commented on a discussion on lib/x509/name_constraints.c: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189995109

>  		 * not a CA. We do this check only on certificates marked as WWW server,
>  		 * because that's where the CN check is only performed. */
>  		if (_gnutls_check_key_purpose(cert, GNUTLS_KP_TLS_WWW_SERVER, 0) != 0)
>  		do {

I think the use of break was the reason for this construction. Do you think we should open a bug for this code?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189995109
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/20190709/53f648e3/attachment.html>


More information about the Gnutls-devel mailing list