_gnutls_hostname_compare() was incredibly slow when over ten wildcards were present...
commitd3dada39f12351abc04f22743fa9c892dcf06276
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 May 2011 20:31:05 +0000 (5 22:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 May 2011 20:34:49 +0000 (5 22:34 +0200)
tree6751247287f4b6e51d74345032dcd47321a1e98e
parent777aa2927b7d9238e505fd2cfc0e616cce60f9e8
_gnutls_hostname_compare() was incredibly slow when over ten wildcards were present. Set a limit on 6 wildcards to avoid any denial of service attack. Reported by Kalle Olavi Niemitalo.
NEWS
THANKS
lib/gnutls_str.c
lib/gnutls_str.h
lib/openpgp/pgp.c
lib/x509/rfc2818_hostname.c