Permalink
Browse files

lower number of allowed compression loops in getLabelFromContent()

1000 is a bit high for a max 255 character qname
  • Loading branch information...
1 parent 55f2dbf commit 032d565786fbd45edb6ece8e2cc8b31c62cb91d0 @mind04 mind04 committed with mind04 Apr 13, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 pdns/dnsparser.cc
View
@@ -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;

0 comments on commit 032d565

Please sign in to comment.