]> granicus.if.org Git - pdns/commitdiff
backport #6103: auth: fix out of bounds exception in CAA processing, fixes #6089
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 18 Dec 2017 13:21:13 +0000 (14:21 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 13 Feb 2018 11:14:10 +0000 (12:14 +0100)
(cherry picked from commit a94e55806c018f568ffd45ad75400b6b69bd18ae)

pdns/dnsparser.cc

index 52fca0ef132482be7462fb2572c6edb7a2fbb28b..126432f12c638b0ed3ca94f18ea2fa0eb6d12cad 100644 (file)
@@ -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