From: Peter van Dijk Date: Mon, 18 Dec 2017 13:21:13 +0000 (+0100) Subject: backport #6103: auth: fix out of bounds exception in CAA processing, fixes #6089 X-Git-Tag: auth-4.1.1^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c6c67ec8c3f7c04ea0ed2c76b912b57ed701a67;p=pdns backport #6103: auth: fix out of bounds exception in CAA processing, fixes #6089 (cherry picked from commit a94e55806c018f568ffd45ad75400b6b69bd18ae) --- 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