const auto* our = d_storage.cbegin();
const auto* other = wire_uncompressed.cbegin();
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
for (; our != d_storage.cend() && other != wire_uncompressed.cend(); ++our, ++other) {
if (dns_tolower(*other) != dns_tolower(*our)) {
return false;
GenericDNSPacketWriter<PacketBuffer> packetWriter(query, aroot, QType::A, QClass::IN, 0);
{
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
+ // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast,cppcoreguidelines-pro-bounds-pointer-arithmetic)
const std::string_view raw(reinterpret_cast<const char*>(query.data()) + sizeof(dnsheader), query.size() - sizeof(dnsheader));
BOOST_CHECK(aroot.matches(raw));