"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/utils/test/js_dealias_test.cc" between
snort3- and snort3-

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

js_dealias_test.cc  (snort3-  (snort3-
skipping to change at line 427 skipping to change at line 427
test_normalization( test_normalization(
"var a, b = eval, c = eval; a; b; c;", "var a, b = eval, c = eval; a; b; c;",
"var var_0000,var_0001=eval,var_0002=eval;var_0000;eval;eval;" "var var_0000,var_0001=eval,var_0002=eval;var_0000;eval;eval;"
); );
SECTION("with automatic semicolon insertion") SECTION("with automatic semicolon insertion")
test_normalization( test_normalization(
"a \n = \n eval \n a \n eval;", "a \n = \n eval \n a \n eval;",
"var_0000=eval;eval;eval;" "var_0000=eval;eval;eval;"
); );
SECTION("with unescape")
"a = \\u0065\\u{0076}\\u0061\\u{006C}; a(); a.foo();",
} }
TEST_CASE("De-aliasing - split", "[JSNormalizer]") TEST_CASE("De-aliasing - split", "[JSNormalizer]")
{ {
SECTION("var keyword") SECTION("var keyword")
test_normalization({ test_normalization({
{"v", "var_0000"}, {"v", "var_0000"},
{"ar a = eval; a;", "var var_0001=eval;eval;"} {"ar a = eval; a;", "var var_0001=eval;eval;"}
}); });
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)