Skip to content

Commit 19d50f4

Browse files
committed
Add a const to satisfy cppcheck
1 parent 13e8be8 commit 19d50f4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/utils/base64.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void Base64::decode_forgiven_engine(unsigned char *plain_text,
119119
int i = 0, j = 0, k = 0;
120120
int ch = 0;
121121
static const char b64_pad = '=';
122-
static int b64_reverse_t[256] = {
122+
static const int b64_reverse_t[256] = {
123123
-2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -2, -1, -2, -2,
124124
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
125125
-1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63,

test/cppcheck_suppressions.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ knownConditionTrueFalse:src/operators/validate_url_encoding.cc:77
5656
knownConditionTrueFalse:src/operators/verify_svnr.cc:87
5757
rethrowNoCurrentException:headers/modsecurity/transaction.h:306
5858
rethrowNoCurrentException:src/rule_with_actions.cc:123
59-
constVariable:src/utils/base64.cc:122
6059

6160
noExplicitConstructor:seclang-parser.hh
6261
constParameter:seclang-parser.hh

0 commit comments

Comments
 (0)