Skip to content

Commit

Permalink
Limit the maximum length of a qname
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis committed Jun 8, 2015
1 parent 7f9283a commit 92f7b2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/dnsparser.cc
Expand Up @@ -493,6 +493,8 @@ void PacketReader::getLabelFromContent(const vector<uint8_t>& content, uint16_t&
} }
ret.append(1,'.'); ret.append(1,'.');
} }
if (ret.length() > 1024)
throw MOADNSException("Total name too long");
} }
} }


Expand Down

0 comments on commit 92f7b2b

Please sign in to comment.