From 38d21eb00b82271ee5dca5b1fcd8daa601c0d2c6 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Wed, 6 Oct 2021 14:30:35 +0200 Subject: [PATCH] fuzz: update canHashPacket() calls accordingly --- pdns/fuzz_packetcache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/fuzz_packetcache.cc b/pdns/fuzz_packetcache.cc index 98f99d372f..0c982d0e72 100644 --- a/pdns/fuzz_packetcache.cc +++ b/pdns/fuzz_packetcache.cc @@ -39,7 +39,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { try { static const std::unordered_set optionsToIgnore{ EDNSOptionCode::COOKIE }; - PacketCache::canHashPacket(input, false); + PacketCache::canHashPacket(input, optionsToIgnore); DNSName qname(input.data(), input.size(), sizeof(dnsheader), false); PacketCache::queryMatches(input, input, qname, optionsToIgnore); } @@ -52,7 +52,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { try { static const std::unordered_set optionsToIgnore{ EDNSOptionCode::COOKIE, EDNSOptionCode::ECS }; - PacketCache::canHashPacket(input, true); + PacketCache::canHashPacket(input, optionsToIgnore); DNSName qname(input.data(), input.size(), sizeof(dnsheader), false); PacketCache::queryMatches(input, input, qname, optionsToIgnore); } -- 2.47.2