]> granicus.if.org Git - pdns/commitdiff
lower number of allowed compression loops in getLabelFromContent()
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 13 Apr 2015 11:53:55 +0000 (13:53 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 13 Apr 2015 12:25:29 +0000 (14:25 +0200)
1000 is a bit high for a max 255 character qname

pdns/dnsparser.cc

index 57b3535411af781625b5b7f15545bdaecfabb93f..f3d4106d96c631197cf961707d572a8c81216a4d 100644 (file)
@@ -455,7 +455,7 @@ string PacketReader::getText(bool multi)
 
 void PacketReader::getLabelFromContent(const vector<uint8_t>& 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;