This patch removes an unnecessary allocation from DnsClient and adds explicit detection for DNS label compression loops in ResourceRecord. Previously, the code relied on a StackOverflowError for exiting the parsing loop. -- Florian Weimer / Red Hat Product Security Team