From: Kees Monshouwer Date: Mon, 13 Apr 2015 11:53:55 +0000 (+0200) Subject: lower number of allowed compression loops in getLabelFromContent() X-Git-Tag: auth-3.4.4~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=032d565786fbd45edb6ece8e2cc8b31c62cb91d0;p=pdns lower number of allowed compression loops in getLabelFromContent() 1000 is a bit high for a max 255 character qname --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 57b353541..f3d4106d9 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -455,7 +455,7 @@ string PacketReader::getText(bool multi) void PacketReader::getLabelFromContent(const vector& content, uint16_t& frompos, string& ret, int recurs) { - if(recurs > 1000) // the forward reference-check below should make this test 100% obsolete + if(recurs > 100) // the forward reference-check below should make this test 100% obsolete throw MOADNSException("Loop"); int pos = frompos;