_gnutls_hostname_compare() was incredibly slow when over ten wildcards were present...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 May 2011 20:31:05 +0000 (22:31 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 5 May 2011 20:31:44 +0000 (22:31 +0200)
commit05d654f81bbab1dfd9b75a4375804cceb1808873
treecc0d3a4f63d1a56ee8cbcd15f6e607bef5cc6c0d
parent12c03890ea08be56536c1c8ea70b19d8a8137564
_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.
THANKS
lib/gnutls_str.c
lib/gnutls_str.h
lib/openpgp/pgp.c
lib/x509/rfc2818_hostname.c