From: W.C.A. Wijngaards Date: Tue, 3 Dec 2019 15:20:24 +0000 (+0100) Subject: - Fix Hang in sldns_wire2str_pkt_scan(), X-Git-Tag: release-1.9.6rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3ff930b06f6b273d02662c3c6a6ecd9b60cd9cb;p=thirdparty%2Funbound.git - Fix Hang in sldns_wire2str_pkt_scan(), reported by X41 D-Sec. --- diff --git a/doc/Changelog b/doc/Changelog index 7e592710c..edda0d427 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -19,6 +19,8 @@ reported by X41 D-Sec. - Fix Out of Bound Write Compressed Names in rdata_copy(), reported by X41 D-Sec. + - Fix Hang in sldns_wire2str_pkt_scan(), + reported by X41 D-Sec. 2 December 2019: Wouter - Merge pull request #122 from he32: In tcp_callback_writer(), diff --git a/sldns/wire2str.c b/sldns/wire2str.c index 8ccc78d95..f827d848d 100644 --- a/sldns/wire2str.c +++ b/sldns/wire2str.c @@ -784,7 +784,7 @@ int sldns_wire2str_dname_scan(uint8_t** d, size_t* dlen, char** s, size_t* slen, /* spool labels onto the string, use compression if its there */ uint8_t* pos = *d; unsigned i, counter=0; - unsigned maxcompr = 1000; /* loop detection, max compr ptrs */ + unsigned maxcompr = 256; /* loop detection, max compr ptrs */ int in_buf = 1; if(comprloop) { if(*comprloop != 0)