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)