From 9dc60905ed72787e3224400e92b7f2ab10267be8 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 14 Oct 2026 17:37:45 +0200 Subject: [PATCH] Rename the reader parameter to avoid a flawfinder false positive Signed-off-by: Niels Lohmann --- tests/src/unit-guard-page.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/unit-guard-page.cpp b/tests/src/unit-guard-page.cpp index d8ea4fba3..2690936fe 100644 --- a/tests/src/unit-guard-page.cpp +++ b/tests/src/unit-guard-page.cpp @@ -283,16 +283,16 @@ JSON_TEST_GUARD_PAGE_READER(read_bjdata, from_bjdata) // reads every prefix of @a bytes at both ends of the guarded page and from a // std::string, which must give the same outcome template -void check_binary(guarded_buffer& guard, const std::vector& bytes, Reader read) +void check_binary(guarded_buffer& guard, const std::vector& bytes, Reader parse) { for (const auto& input : all_prefixes({std::string(bytes.begin(), bytes.end())})) { CAPTURE(input) - const std::string expected = outcome([&] { return read(input); }); + const std::string expected = outcome([&] { return parse(input); }); for (int placement = 0; placement < 2; ++placement) { const std::uint8_t* const first = placement == 0 ? guard.at_end(input) : guard.at_start(input); - CHECK(outcome([&] { return read(first, first + input.size()); }) == expected); + CHECK(outcome([&] { return parse(first, first + input.size()); }) == expected); } } }