- Fix Hang in sldns_wire2str_pkt_scan(),

reported by X41 D-Sec.
This commit is contained in:
W.C.A. Wijngaards 2019-12-03 16:20:24 +01:00
parent 6c3a0b54ed
commit d3ff930b06
2 changed files with 3 additions and 1 deletions

View file

@ -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(),

View file

@ -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)