From: Remi Gacogne Date: Tue, 29 Jul 2025 07:45:33 +0000 (+0200) Subject: dnsdist: Yet another clang-tidy warning X-Git-Tag: dnsdist-2.0.1~15^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7dec48ecb1352653cfa40282620a3082359f878d;p=thirdparty%2Fpdns.git dnsdist: Yet another clang-tidy warning Signed-off-by: Remi Gacogne (cherry picked from commit aa5ca15a59efa4602efc5d78e17514dfe4edab16) Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index f1a3e6dc5..d8ef6def6 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -292,7 +292,7 @@ bool responseContentMatches(const PacketBuffer& response, const DNSName& qname, return false; } - // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast,cppcoreguidelines-pro-bounds-pointer-arithmetic) const std::string_view packetView(reinterpret_cast(response.data() + sizeof(dnsheader)), response.size() - sizeof(dnsheader)); if (qname.matches(packetView)) { size_t pos = sizeof(dnsheader) + qname.wirelength();