Skip to content

Commit

Permalink
Release 1.6.2 (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 authored Jan 26, 2023
1 parent a70b477 commit 6af7d1a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# libddwaf release

### v1.6.2 ([unstable](https://github.com/DataDog/libddwaf/blob/master/README.md#versioning-semantics)) - 2023/01/26
#### Changes
- Add boolean getter ([#132](https://github.com/DataDog/libddwaf/pull/132))
- Add support for converting string to bool in parameter bool cast operator ([#133](https://github.com/DataDog/libddwaf/pull/133))
- Add parameter `int64_t` cast operator ([#133](https://github.com/DataDog/libddwaf/pull/133))
- Add support for `enabled` flag on ruleset parser ([#133](https://github.com/DataDog/libddwaf/pull/133))

#### Fixes
- Replace `isdigit` with custom version due to windows locale-dependence ([#133](https://github.com/DataDog/libddwaf/pull/133))
- Minor fixes and parsing improvements ([#133](https://github.com/DataDog/libddwaf/pull/133))

### v1.6.1 ([unstable](https://github.com/DataDog/libddwaf/blob/master/README.md#versioning-semantics)) - 2023/01/17

#### Miscellaneous
Expand Down
11 changes: 10 additions & 1 deletion src/parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2021 Datadog, Inc.

#include "ddwaf.h"
#include <charconv>
#include <cinttypes>
#include <exception.hpp>
#include <parameter.hpp>

namespace {

const std::string strtype(int type)
std::string strtype(int type)
{
switch (type) {
case DDWAF_OBJ_MAP:
Expand All @@ -20,6 +21,14 @@ const std::string strtype(int type)
return "array";
case DDWAF_OBJ_STRING:
return "string";
case DDWAF_OBJ_BOOL:
return "bool";
case DDWAF_OBJ_UNSIGNED:
return "unsigned";
case DDWAF_OBJ_SIGNED:
return "signed";
default:
break;
}
return "unknown";
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ TEST(FunctionalTests, HandleBad)
/*ddwaf_destroy(handle2);*/
/*}*/

TEST(FunctionalTests, ddwaf_get_version) { EXPECT_STREQ(ddwaf_get_version(), "1.6.1"); }
TEST(FunctionalTests, ddwaf_get_version) { EXPECT_STREQ(ddwaf_get_version(), "1.6.2"); }

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.6.1
1.6.2

0 comments on commit 6af7d1a

Please sign in to comment.