]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix Hang in sldns_wire2str_pkt_scan(),
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Dec 2019 15:20:24 +0000 (16:20 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Dec 2019 15:20:24 +0000 (16:20 +0100)
  reported by X41 D-Sec.

doc/Changelog
sldns/wire2str.c

index 7e592710c1b0fef21ac786c49bb7589b36c4a0f1..edda0d427b28baf0bb5402c5929bd933e63145de 100644 (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(),
index 8ccc78d95532c96a1bcc66423a415ed0863b6f83..f827d848d354add07b8300642ee04d4a4043b748 100644 (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)