bind9/bin/dig
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
..
include/dig change "key" to "tsigkey" to silence "short global name" warning 2018-04-22 12:57:52 -07:00
win32 [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
.gitignore [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
dig.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
dig.c check code is non NULL 2018-07-11 11:58:49 -07:00
dig.docbook copyrights 2018-05-23 09:52:09 -07:00
dig.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
dighost.c Improve error handling in idn_ace_to_locale() 2018-07-13 12:14:14 +02:00
host.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
host.c Use dns_fixedname_initname() where possible 2018-04-10 13:09:24 -07:00
host.docbook Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
host.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
Makefile.in Simplify the libidn2 configure checks 2018-03-17 13:26:05 +00:00
nslookup.1 prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00
nslookup.c Remove bogus comparison 2018-04-20 14:51:26 -07:00
nslookup.docbook Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
nslookup.html prepare 9.12.1rc1 2018-06-21 18:46:32 +02:00