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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6103%2Fhead;p=thirdparty%2Fpdns.git auth: fix out of bounds exception in CAA processing, fixes #6089 --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 52fca0ef13..126432f12c 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