From 23b6481dc3340f47034531a590b35120286c38c6 Mon Sep 17 00:00:00 2001 From: Eduardo Arias Date: Sun, 28 Apr 2024 23:59:03 -0300 Subject: [PATCH] Partially introduced commit cc24a4f to address redundantCopyLocalConst warnings --- src/modsecurity.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modsecurity.cc b/src/modsecurity.cc index 4b48b7995f..c99fc43254 100644 --- a/src/modsecurity.cc +++ b/src/modsecurity.cc @@ -346,8 +346,10 @@ int ModSecurity::processContentOffset(const char *content, size_t len, strlen("highlight")); yajl_gen_map_open(g); ops.pop_back(); + // cppcheck-suppress redundantCopyLocalConst ; copy required to avoid use after free, see commit 7cb67b0 std::string startingAt = ops.back().str(); ops.pop_back(); + // cppcheck-suppress redundantCopyLocalConst ; copy required to avoid use after free, see commit 7cb67b0 std::string size = ops.back().str(); ops.pop_back(); yajl_gen_string(g,