Skip to content

Commit 032d565

Browse files
committed
lower number of allowed compression loops in getLabelFromContent()
1000 is a bit high for a max 255 character qname
1 parent 55f2dbf commit 032d565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdns/dnsparser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ string PacketReader::getText(bool multi)
455455

456456
void PacketReader::getLabelFromContent(const vector<uint8_t>& content, uint16_t& frompos, string& ret, int recurs)
457457
{
458-
if(recurs > 1000) // the forward reference-check below should make this test 100% obsolete
458+
if(recurs > 100) // the forward reference-check below should make this test 100% obsolete
459459
throw MOADNSException("Loop");
460460

461461
int pos = frompos;

0 commit comments

Comments
 (0)