From: Wouter Wijngaards Date: Thu, 15 Oct 2015 09:51:30 +0000 (+0000) Subject: - Fix ldns_wire2str_rdata_scan for malformed RRs. X-Git-Tag: release-1.5.6rc1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d4330b1ff71a6c00d26b290332b4d8005b6ae88;p=thirdparty%2Funbound.git - Fix ldns_wire2str_rdata_scan for malformed RRs. his line, and those below, will be ignored-- M trunk/doc/Changelog M trunk/sldns/wire2str.c git-svn-id: file:///svn/unbound/trunk@3507 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 29cf20d14..0518233a3 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 15 October 2015: Wouter - Fix segfault in the dns64 module in the formaterror error path. + - Fix sldns_wire2str_rdata_scan for malformed RRs. 14 October 2015: Wouter - ANY responses include DNAME records if present, as per Evan Hunt's diff --git a/sldns/wire2str.c b/sldns/wire2str.c index cec3bc7b0..5cbd78eed 100644 --- a/sldns/wire2str.c +++ b/sldns/wire2str.c @@ -697,6 +697,9 @@ int sldns_wire2str_rdata_scan(uint8_t** d, size_t* dlen, char** s, } w += n; } + if(*dlen != 0) { + goto failed; + } return w; }