Skip to content

Commit

Permalink
Partially introduced commit cc24a4f to address redundantCopyLocalCons…
Browse files Browse the repository at this point in the history
…t warnings
  • Loading branch information
eduar-hte committed Apr 30, 2024
1 parent ac89772 commit 23b6481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modsecurity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 23b6481

Please sign in to comment.