summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-11 11:51:08 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-11 11:51:08 +0100
commitc0a25aa92b612786f4e45292c4aee1d7d47123f8 (patch)
tree484996008ac28bfeba4d327994b652c32252c42c /ChangeLog
parent9e0ad3049dbae88d615bfb038e53bf365a39a634 (diff)
downloadglibc-c0a25aa92b612786f4e45292c4aee1d7d47123f8.tar.gz
glibc-c0a25aa92b612786f4e45292c4aee1d7d47123f8.tar.xz
glibc-c0a25aa92b612786f4e45292c4aee1d7d47123f8.zip
resolv: More precise checks in res_hnok, res_dnok [BZ #22409] [BZ #22412]
res_hnok rejected some host names used on the Internet, such as
www-.example.com.  res_hnok and res_dnok failed to perform basic syntax
checking on DNS domain names.

Also fix res_mailok, res_ownok.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4739e62246..c53ff98ce8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2017-11-11  Florian Weimer  <fweimer@redhat.com>
 
+	[BZ #22409]
+	[BZ #22412]
+	* resolv/res_comp.c (printable_string, binary_hnok)
+	(binary_leading_dash): New functions.
+	(res_hnok): Reimplement using these functions and ns_name_pton.
+	(res_ownok): Likewise.
+	(res_mailok): Reimplement using printable_string, ns_name_pton and
+	binary_hnok.
+	(res_dnok): Reimplement using printable_string and ns_name_pton.
+	* resolv/tst-res_hnok.c (tests): Add additional tests.
+	(LETTERDIGITS, PRINTABLE): Define.
+	(do_test): Adjust one_char results.
+
+2017-11-11  Florian Weimer  <fweimer@redhat.com>
+
 	[BZ #22413]
 	* resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
 	* resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.