Skip to content

Commit

Permalink
lower number of allowed compression loops in getLabelFromContent()
Browse files Browse the repository at this point in the history
1000 is a bit high for a max 255 character qname
  • Loading branch information
mind04 committed Apr 13, 2015
1 parent 55f2dbf commit 032d565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsparser.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 032d565

Please sign in to comment.