bind9/bin/tests
Michał Kępień 7fe0f00a3b Improve error handling in idn_ace_to_locale()
While idn2_to_unicode_8zlz() takes a 'flags' argument, it is ignored and
thus cannot be used to perform IDN checks on the output string.

The bug in libidn2 versions before 2.0.5 was not that a call to
idn2_to_unicode_8zlz() with certain flags set did not cause IDN checks
to be performed.  The bug was that idn2_to_unicode_8zlz() did not check
whether a conversion can be performed between UTF-8 and the current
locale's character encoding.  In other words, with libidn2 version
2.0.5+, if the current locale's character encoding is ASCII, then
idn2_to_unicode_8zlz() will fail when it is passed any Punycode string
which decodes to a non-ASCII string, even if it is a valid IDNA2008
name.

Rework idn_ace_to_locale() so that invalid IDNA2008 names are properly
and consistently detected for all libidn2 versions and locales.

Update the "idna" system test accordingly.  Add checks for processing a
server response containing Punycode which decodes to an invalid IDNA2008
name.  Fix invalid subtest description.

(cherry picked from commit b896fc4972)
2018-07-13 12:14:14 +02:00
..
bigtest update file headers 2018-03-15 18:40:21 -07:00
optional Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
pkcs11 Add .gitignore for PKCS#11 test files 2018-07-11 08:11:21 +02:00
startperf Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
system Improve error handling in idn_ace_to_locale() 2018-07-13 12:14:14 +02:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:39:54 -08:00
virtual-time Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
.gitignore migrate t_dst signature test to lib/dns/tests/dst_test 2018-03-09 14:39:56 -08:00
cfg_test.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
fromhex.pl Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
headerdep_test.sh.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
Makefile.in Alter distclean rule to prevent recursing into the same directory twice 2018-04-10 20:04:31 -07:00
makejournal.c Use dns_fixedname_initname() where possible 2018-04-10 13:09:24 -07:00
named.conf Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
wire_test.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00