Skip to content

Commit

Permalink
parser: Fix typo on SanitiseArgs
Browse files Browse the repository at this point in the history
Related to: #715 and #1889
  • Loading branch information
Felipe Zimmerle committed Sep 12, 2018
1 parent 9c73c09 commit c2bc695
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 102 deletions.
54 changes: 27 additions & 27 deletions src/parser/seclang-parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -518,11 +518,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -758,11 +758,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -1217,11 +1217,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -4736,39 +4736,39 @@ namespace yy {
case 375:
#line 2696 "seclang-parser.yy" // lalr1.cc:856
{
ACTION_NOT_SUPPORTED("SanatiseArg", yystack_[1].location);
ACTION_NOT_SUPPORTED("SanitiseArg", yystack_[1].location);
}
#line 4742 "seclang-parser.cc" // lalr1.cc:856
break;

case 376:
#line 2700 "seclang-parser.yy" // lalr1.cc:856
{
ACTION_NOT_SUPPORTED("SanatiseMatched", yystack_[1].location);
ACTION_NOT_SUPPORTED("SanitiseMatched", yystack_[1].location);
}
#line 4750 "seclang-parser.cc" // lalr1.cc:856
break;

case 377:
#line 2704 "seclang-parser.yy" // lalr1.cc:856
{
ACTION_NOT_SUPPORTED("SanatiseMatchedBytes", yystack_[1].location);
ACTION_NOT_SUPPORTED("SanitiseMatchedBytes", yystack_[1].location);
}
#line 4758 "seclang-parser.cc" // lalr1.cc:856
break;

case 378:
#line 2708 "seclang-parser.yy" // lalr1.cc:856
{
ACTION_NOT_SUPPORTED("SanatiseRequestHeader", yystack_[1].location);
ACTION_NOT_SUPPORTED("SanitiseRequestHeader", yystack_[1].location);
}
#line 4766 "seclang-parser.cc" // lalr1.cc:856
break;

case 379:
#line 2712 "seclang-parser.yy" // lalr1.cc:856
{
ACTION_NOT_SUPPORTED("SanatiseResponseHeader", yystack_[1].location);
ACTION_NOT_SUPPORTED("SanitiseResponseHeader", yystack_[1].location);
}
#line 4774 "seclang-parser.cc" // lalr1.cc:856
break;
Expand Down Expand Up @@ -6531,8 +6531,8 @@ namespace yy {
"\"InitCol\"", "\"Log\"", "\"LogData\"", "\"Maturity\"", "\"Msg\"",
"\"MultiMatch\"", "\"NoAuditLog\"", "\"NoLog\"", "\"Pass\"", "\"Pause\"",
"\"Phase\"", "\"Prepend\"", "\"Proxy\"", "\"Redirect\"", "\"Rev\"",
"\"SanatiseArg\"", "\"SanatiseMatched\"", "\"SanatiseMatchedBytes\"",
"\"SanatiseRequestHeader\"", "\"SanatiseResponseHeader\"", "\"SetEnv\"",
"\"SanitiseArg\"", "\"SanitiseMatched\"", "\"SanitiseMatchedBytes\"",
"\"SanitiseRequestHeader\"", "\"SanitiseResponseHeader\"", "\"SetEnv\"",
"\"SetRsc\"", "\"SetSid\"", "\"SetUID\"", "\"Severity\"", "\"Skip\"",
"\"SkipAfter\"", "\"Status\"", "\"Tag\"",
"\"ACTION_TRANSFORMATION_BASE_64_ENCODE\"",
Expand Down
90 changes: 45 additions & 45 deletions src/parser/seclang-parser.hh
Original file line number Diff line number Diff line change
Expand Up @@ -663,11 +663,11 @@ namespace yy {
// "Proxy"
// "Redirect"
// "Rev"
// "SanatiseArg"
// "SanatiseMatched"
// "SanatiseMatchedBytes"
// "SanatiseRequestHeader"
// "SanatiseResponseHeader"
// "SanitiseArg"
// "SanitiseMatched"
// "SanitiseMatchedBytes"
// "SanitiseRequestHeader"
// "SanitiseResponseHeader"
// "SetEnv"
// "SetRsc"
// "SetSid"
Expand Down Expand Up @@ -1045,11 +1045,11 @@ namespace yy {
TOK_ACTION_PROXY = 435,
TOK_ACTION_REDIRECT = 436,
TOK_ACTION_REV = 437,
TOK_ACTION_SANATISE_ARG = 438,
TOK_ACTION_SANATISE_MATCHED = 439,
TOK_ACTION_SANATISE_MATCHED_BYTES = 440,
TOK_ACTION_SANATISE_REQUEST_HEADER = 441,
TOK_ACTION_SANATISE_RESPONSE_HEADER = 442,
TOK_ACTION_SANITISE_ARG = 438,
TOK_ACTION_SANITISE_MATCHED = 439,
TOK_ACTION_SANITISE_MATCHED_BYTES = 440,
TOK_ACTION_SANITISE_REQUEST_HEADER = 441,
TOK_ACTION_SANITISE_RESPONSE_HEADER = 442,
TOK_ACTION_SETENV = 443,
TOK_ACTION_SETRSC = 444,
TOK_ACTION_SETSID = 445,
Expand Down Expand Up @@ -2045,23 +2045,23 @@ namespace yy {

static inline
symbol_type
make_ACTION_SANATISE_ARG (const std::string& v, const location_type& l);
make_ACTION_SANITISE_ARG (const std::string& v, const location_type& l);

static inline
symbol_type
make_ACTION_SANATISE_MATCHED (const std::string& v, const location_type& l);
make_ACTION_SANITISE_MATCHED (const std::string& v, const location_type& l);

static inline
symbol_type
make_ACTION_SANATISE_MATCHED_BYTES (const std::string& v, const location_type& l);
make_ACTION_SANITISE_MATCHED_BYTES (const std::string& v, const location_type& l);

static inline
symbol_type
make_ACTION_SANATISE_REQUEST_HEADER (const std::string& v, const location_type& l);
make_ACTION_SANITISE_REQUEST_HEADER (const std::string& v, const location_type& l);

static inline
symbol_type
make_ACTION_SANATISE_RESPONSE_HEADER (const std::string& v, const location_type& l);
make_ACTION_SANITISE_RESPONSE_HEADER (const std::string& v, const location_type& l);

static inline
symbol_type
Expand Down Expand Up @@ -3027,11 +3027,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -3268,11 +3268,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -3582,11 +3582,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -3829,11 +3829,11 @@ namespace yy {
case 180: // "Proxy"
case 181: // "Redirect"
case 182: // "Rev"
case 183: // "SanatiseArg"
case 184: // "SanatiseMatched"
case 185: // "SanatiseMatchedBytes"
case 186: // "SanatiseRequestHeader"
case 187: // "SanatiseResponseHeader"
case 183: // "SanitiseArg"
case 184: // "SanitiseMatched"
case 185: // "SanitiseMatchedBytes"
case 186: // "SanitiseRequestHeader"
case 187: // "SanitiseResponseHeader"
case 188: // "SetEnv"
case 189: // "SetRsc"
case 190: // "SetSid"
Expand Down Expand Up @@ -5196,33 +5196,33 @@ namespace yy {
}

seclang_parser::symbol_type
seclang_parser::make_ACTION_SANATISE_ARG (const std::string& v, const location_type& l)
seclang_parser::make_ACTION_SANITISE_ARG (const std::string& v, const location_type& l)
{
return symbol_type (token::TOK_ACTION_SANATISE_ARG, v, l);
return symbol_type (token::TOK_ACTION_SANITISE_ARG, v, l);
}

seclang_parser::symbol_type
seclang_parser::make_ACTION_SANATISE_MATCHED (const std::string& v, const location_type& l)
seclang_parser::make_ACTION_SANITISE_MATCHED (const std::string& v, const location_type& l)
{
return symbol_type (token::TOK_ACTION_SANATISE_MATCHED, v, l);
return symbol_type (token::TOK_ACTION_SANITISE_MATCHED, v, l);
}

seclang_parser::symbol_type
seclang_parser::make_ACTION_SANATISE_MATCHED_BYTES (const std::string& v, const location_type& l)
seclang_parser::make_ACTION_SANITISE_MATCHED_BYTES (const std::string& v, const location_type& l)
{
return symbol_type (token::TOK_ACTION_SANATISE_MATCHED_BYTES, v, l);
return symbol_type (token::TOK_ACTION_SANITISE_MATCHED_BYTES, v, l);
}

seclang_parser::symbol_type
seclang_parser::make_ACTION_SANATISE_REQUEST_HEADER (const std::string& v, const location_type& l)
seclang_parser::make_ACTION_SANITISE_REQUEST_HEADER (const std::string& v, const location_type& l)
{
return symbol_type (token::TOK_ACTION_SANATISE_REQUEST_HEADER, v, l);
return symbol_type (token::TOK_ACTION_SANITISE_REQUEST_HEADER, v, l);
}

seclang_parser::symbol_type
seclang_parser::make_ACTION_SANATISE_RESPONSE_HEADER (const std::string& v, const location_type& l)
seclang_parser::make_ACTION_SANITISE_RESPONSE_HEADER (const std::string& v, const location_type& l)
{
return symbol_type (token::TOK_ACTION_SANATISE_RESPONSE_HEADER, v, l);
return symbol_type (token::TOK_ACTION_SANITISE_RESPONSE_HEADER, v, l);
}

seclang_parser::symbol_type
Expand Down
30 changes: 15 additions & 15 deletions src/parser/seclang-parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,11 @@ using modsecurity::operators::Operator;
ACTION_PROXY "Proxy"
ACTION_REDIRECT "Redirect"
ACTION_REV "Rev"
ACTION_SANATISE_ARG "SanatiseArg"
ACTION_SANATISE_MATCHED "SanatiseMatched"
ACTION_SANATISE_MATCHED_BYTES "SanatiseMatchedBytes"
ACTION_SANATISE_REQUEST_HEADER "SanatiseRequestHeader"
ACTION_SANATISE_RESPONSE_HEADER "SanatiseResponseHeader"
ACTION_SANITISE_ARG "SanitiseArg"
ACTION_SANITISE_MATCHED "SanitiseMatched"
ACTION_SANITISE_MATCHED_BYTES "SanitiseMatchedBytes"
ACTION_SANITISE_REQUEST_HEADER "SanitiseRequestHeader"
ACTION_SANITISE_RESPONSE_HEADER "SanitiseResponseHeader"
ACTION_SETENV "SetEnv"
ACTION_SETRSC "SetRsc"
ACTION_SETSID "SetSid"
Expand Down Expand Up @@ -2692,25 +2692,25 @@ act:
{
ACTION_CONTAINER($$, new actions::Rev($1));
}
| ACTION_SANATISE_ARG
| ACTION_SANITISE_ARG
{
ACTION_NOT_SUPPORTED("SanatiseArg", @0);
ACTION_NOT_SUPPORTED("SanitiseArg", @0);
}
| ACTION_SANATISE_MATCHED
| ACTION_SANITISE_MATCHED
{
ACTION_NOT_SUPPORTED("SanatiseMatched", @0);
ACTION_NOT_SUPPORTED("SanitiseMatched", @0);
}
| ACTION_SANATISE_MATCHED_BYTES
| ACTION_SANITISE_MATCHED_BYTES
{
ACTION_NOT_SUPPORTED("SanatiseMatchedBytes", @0);
ACTION_NOT_SUPPORTED("SanitiseMatchedBytes", @0);
}
| ACTION_SANATISE_REQUEST_HEADER
| ACTION_SANITISE_REQUEST_HEADER
{
ACTION_NOT_SUPPORTED("SanatiseRequestHeader", @0);
ACTION_NOT_SUPPORTED("SanitiseRequestHeader", @0);
}
| ACTION_SANATISE_RESPONSE_HEADER
| ACTION_SANITISE_RESPONSE_HEADER
{
ACTION_NOT_SUPPORTED("SanatiseResponseHeader", @0);
ACTION_NOT_SUPPORTED("SanitiseResponseHeader", @0);
}
| ACTION_SETENV
{
Expand Down
10 changes: 5 additions & 5 deletions src/parser/seclang-scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6002,27 +6002,27 @@ YY_RULE_SETUP
case 17:
YY_RULE_SETUP
#line 518 "seclang-scanner.ll"
{ return p::make_ACTION_SANATISE_ARG(yytext, *driver.loc.back()); }
{ return p::make_ACTION_SANITISE_ARG(yytext, *driver.loc.back()); }
YY_BREAK
case 18:
YY_RULE_SETUP
#line 519 "seclang-scanner.ll"
{ return p::make_ACTION_SANATISE_MATCHED(yytext, *driver.loc.back()); }
{ return p::make_ACTION_SANITISE_MATCHED(yytext, *driver.loc.back()); }
YY_BREAK
case 19:
YY_RULE_SETUP
#line 520 "seclang-scanner.ll"
{ return p::make_ACTION_SANATISE_MATCHED_BYTES(yytext, *driver.loc.back()); }
{ return p::make_ACTION_SANITISE_MATCHED_BYTES(yytext, *driver.loc.back()); }
YY_BREAK
case 20:
YY_RULE_SETUP
#line 521 "seclang-scanner.ll"
{ return p::make_ACTION_SANATISE_REQUEST_HEADER(yytext, *driver.loc.back()); }
{ return p::make_ACTION_SANITISE_REQUEST_HEADER(yytext, *driver.loc.back()); }
YY_BREAK
case 21:
YY_RULE_SETUP
#line 522 "seclang-scanner.ll"
{ return p::make_ACTION_SANATISE_RESPONSE_HEADER(yytext, *driver.loc.back()); }
{ return p::make_ACTION_SANITISE_RESPONSE_HEADER(yytext, *driver.loc.back()); }
YY_BREAK
case 22:
YY_RULE_SETUP
Expand Down
Loading

0 comments on commit c2bc695

Please sign in to comment.