Skip to content

Commit 1ec4c20

Browse files
committed
Partially introduced commit cc24a4f to address redundantCopyLocalConst warnings
1 parent 32627ff commit 1ec4c20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modsecurity.cc

+2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,10 @@ int ModSecurity::processContentOffset(const char *content, size_t len,
346346
strlen("highlight"));
347347
yajl_gen_map_open(g);
348348
ops.pop_back();
349+
// cppcheck-suppress redundantCopyLocalConst ; copy required to avoid use after free, see commit 7cb67b0
349350
std::string startingAt = ops.back().str();
350351
ops.pop_back();
352+
// cppcheck-suppress redundantCopyLocalConst ; copy required to avoid use after free, see commit 7cb67b0
351353
std::string size = ops.back().str();
352354
ops.pop_back();
353355
yajl_gen_string(g,

0 commit comments

Comments
 (0)