Skip to content

Commit

Permalink
Release 1.0.13 (unstable) (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 authored Oct 12, 2021
1 parent d7b875f commit d5aad6e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# libddwaf release

### v1.0.13 (unstable) - 2021/10/11
- Add support for ruleset format v2.1.
- Update fuzzer.
- Fix addresses with key path missing from ddwaf\_required\_addresses.
- Improve ruleset parsing logging.

### v1.0.12 (unstable) - 2021/10/01
- Add libinjection SQL and XSS rule processors.
- Add support for ruleset format v1.1 (adding is\_sqli and is\_xss operators).
Expand Down
2 changes: 1 addition & 1 deletion src/PowerWAF.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct PowerWAF

static PowerWAF* fromConfig(const ddwaf_object rules, const ddwaf_config* config);

static constexpr ddwaf_version waf_version { 1, 0, 12 };
static constexpr ddwaf_version waf_version { 1, 0, 13 };
};

#endif /* pw_hpp */
3 changes: 3 additions & 0 deletions src/parser/parser_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ void parse(parameter::map& ruleset, PWRuleManager& ruleManager, PWManifest& mani
{
throw parsing_error("no valid rules found");
}

DDWAF_DEBUG("Loaded %zu rules out of %zu available in the ruleset",
ruleManager.getNbRules(), rules.size());
}

}
3 changes: 3 additions & 0 deletions src/parser/parser_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ void parse(parameter::map& ruleset, PWRuleManager& ruleManager, PWManifest& mani
{
throw parsing_error("no valid rules found");
}

DDWAF_DEBUG("Loaded %zu rules out of %zu available in the ruleset",
ruleManager.getNbRules(), rules.size());
}

}
2 changes: 1 addition & 1 deletion tests/TestInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ TEST(FunctionalTests, ddwaf_get_version)

EXPECT_EQ(version.major, 1);
EXPECT_EQ(version.minor, 0);
EXPECT_EQ(version.patch, 12);
EXPECT_EQ(version.patch, 13);
}

TEST(FunctionalTests, ddwaf_runNull)
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.12
1.0.13

0 comments on commit d5aad6e

Please sign in to comment.