From a94e55806c018f568ffd45ad75400b6b69bd18ae Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 18 Dec 2017 14:21:13 +0100 Subject: [PATCH] auth: fix out of bounds exception in CAA processing, fixes #6089 --- pdns/dnsparser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2