aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-01-08 14:33:17 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-01-08 20:07:24 +0100
commit401311cfba71b61d93d23aa17e5c9ac5fb047d48 (patch)
treec75e333a4167d782bd22da480b516c6b7e07c9ae /ChangeLog
parent2b3aa44656dd873e2753c98fdcb95be6a9d147a6 (diff)
downloadglibc-401311cfba71b61d93d23aa17e5c9ac5fb047d48.tar
glibc-401311cfba71b61d93d23aa17e5c9ac5fb047d48.tar.gz
glibc-401311cfba71b61d93d23aa17e5c9ac5fb047d48.tar.bz2
glibc-401311cfba71b61d93d23aa17e5c9ac5fb047d48.zip
resolv: Support binary labels in test framework
The old implementation based on hsearch_r used an ad-hoc C string encoding and produced an incorrect format on the wire for domain names which contained bytes which needed escaping when printed. This commit switches to ns_name_pton for the wire format conversion (now that we have separate tests for it) and uses a tsearch tree with a suitable comparison function to locate compression targets.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog19
1 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a7799fcdd6..1fa2eaa6d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,24 @@
2018-01-08 Florian Weimer <fweimer@redhat.com>
+ resolv: Support binary labels in test framework.
+ * support/resolv_test.c (struct to_be_freed): Remove.
+ (struct compressed_name): New.
+ (allocate_compressed_name, ascii_tolower)
+ (compare_compressed_name): New functions.
+ (struct resolv_response_builder): Update type of
+ compression_offsets for use with tsearch. Rempve to_be_freed.
+ (response_push_pointer_to_free): Remove function.
+ (resolv_response_add_name): Rewrite using struct compressed_name
+ and tsearch instead of hsearch_r.
+ (response_builder_allocate): Remove initialization of
+ compression_offsets.
+ (response_builder_free): Update for removal of to_be_freed. Use
+ tdestroy instead of hdestroy_r.
+ * resolv/Makefile (tests): Add tst-resolv-binary.
+ (tst-resolv-binary): Link with -lresolv -lpthread.
+
+2018-01-08 Florian Weimer <fweimer@redhat.com>
+
* support/check.h (TEST_COMPARE): Allow sign mismatch at compile
time. Pass positive flag instead of negative flag to
support_test_compare_failure.