From: Peter van Dijk Date: Mon, 18 Dec 2017 13:21:13 +0000 (+0100) Subject: auth: fix out of bounds exception in CAA processing, fixes #6089 X-Git-Tag: dnsdist-1.3.0~184^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a94e55806c018f568ffd45ad75400b6b69bd18ae;p=pdns auth: fix out of bounds exception in CAA processing, fixes #6089 --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 52fca0ef1..126432f12 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -491,7 +491,7 @@ string PacketReader::getText(bool multi, bool lenField) string PacketReader::getUnquotedText(bool lenField) { - int16_t stop_at; + uint16_t stop_at; if(lenField) stop_at = (uint8_t)d_content.at(d_pos) + d_pos + 1; else