about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-03-15 12:57:12 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-03-15 13:33:40 +0100
commitf889e73f603dcf90b4db6a2065104a78c1a0e94d (patch)
treee70508fa8cde79e40fcc965f28eea7fdfc11916a /ChangeLog
parented7d6072f25f75b808b40c206371361f1313f342 (diff)
downloadglibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.tar.gz
glibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.tar.xz
glibc-f889e73f603dcf90b4db6a2065104a78c1a0e94d.zip
support_format_dns_packet: Fix CNAME and multiple RR handling
Before this change, the loop iterating over RRs in the answer
section stopped at the first CNAME record, never printing them.
The CNAME and PTR record contents was extracted from the wrong
buffer (whole packet instead RDATA).  This desynced the parsing
after the first CNAME or PTR record.

Also fix the AAAA record parsing by checking their sizes.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4206e36e98..db9db56b0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-03-15  Florian Weimer  <fweimer@redhat.com>
+
+	* support/support_format_dns_packet.c (support_format_dns_packet):
+	Handle CNAME records in the response.  Extract RDATA names from
+	rdata, not the whole packet.  Check AAAA record length.
+	* support/tst-support_format_dns_packet.c: New file.
+	* support/Makefile (tests): Add tst-support_format_dns_packet.
+	(tst-support_format_dns_packet): Link against libresolv.
+
 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	[BZ #21232]