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 5, 2015
1 parent dbedfc5 commit a0a1482
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/dnsparser.cc
Expand Up @@ -470,6 +470,8 @@ void PacketReader::getLabelFromContent(const vector<uint8_t>& content, uint16_t&
}
ret.append(1,'.');
}
if (ret.length() > 1024)
throw MOADNSException("Total name too long");
}
}

Expand Down

0 comments on commit a0a1482

Please sign in to comment.