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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2425%2Fhead;p=thirdparty%2Fpdns.git 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 57b3535411..f3d4106d96 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;