Add a const to satisfy cppcheck

This commit is contained in:
Martin Vierula 2021-12-20 09:41:38 -08:00
parent 13e8be83c5
commit 19d50f4da4
No known key found for this signature in database
GPG Key ID: F2FC4E45883BCBA4
2 changed files with 1 additions and 2 deletions

View File

@ -119,7 +119,7 @@ void Base64::decode_forgiven_engine(unsigned char *plain_text,
int i = 0, j = 0, k = 0; int i = 0, j = 0, k = 0;
int ch = 0; int ch = 0;
static const char b64_pad = '='; static const char b64_pad = '=';
static int b64_reverse_t[256] = { static const int b64_reverse_t[256] = {
-2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -2, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -2, -1, -2, -2,
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
-1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63, -1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63,

View File

@ -56,7 +56,6 @@ knownConditionTrueFalse:src/operators/validate_url_encoding.cc:77
knownConditionTrueFalse:src/operators/verify_svnr.cc:87 knownConditionTrueFalse:src/operators/verify_svnr.cc:87
rethrowNoCurrentException:headers/modsecurity/transaction.h:306 rethrowNoCurrentException:headers/modsecurity/transaction.h:306
rethrowNoCurrentException:src/rule_with_actions.cc:123 rethrowNoCurrentException:src/rule_with_actions.cc:123
constVariable:src/utils/base64.cc:122
noExplicitConstructor:seclang-parser.hh noExplicitConstructor:seclang-parser.hh
constParameter:seclang-parser.hh constParameter:seclang-parser.hh