mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 01:22:18 +03:00
Add cppcheck suppressions for false positives
This commit is contained in:
committed by
Eduardo Arias
parent
c2b86ddc49
commit
d053ec6de6
@@ -22,7 +22,7 @@ namespace modsecurity::actions::transformations {
|
||||
static inline bool inplace(std::string &value) {
|
||||
if (value.empty()) return false;
|
||||
|
||||
for(auto &c : value) {
|
||||
for(auto &c : value) { // cppcheck-suppress constVariableReference ; false positive
|
||||
((unsigned char&)c) &= 0x7f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user