libddwaf 1.22.0.0.1 → 1.22.0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/datadog/appsec/waf/converter.rb +5 -1
- data/lib/datadog/appsec/waf/version.rb +3 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0df9a5856b3d088cb3df3831c6ff9a8effbbfafbca8648e39aac1e7d54c26252
|
4
|
+
data.tar.gz: 162b988831c6b41f5f4ff556eee37b117120c02aa66e288f569b663759c9fc67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c29189c22f7b96212ef2bf3e9c5089ee7984e29da3d4dabe3a639ba033b8f6126c3aa72f94e7ca82963bcef78eb8efdeee4b27eee0645adf9ad2cebac5107504
|
7
|
+
data.tar.gz: bda9cb832b37a022553f64903d3aeceb4432ecccfcf6c7d5fb3f46f0cad0e37bb493f9559e005c24003744053c00d68593d7a15790c323701f6e07d4f0c5ca1d
|
@@ -142,7 +142,11 @@ module Datadog
|
|
142
142
|
when :ddwaf_obj_bool
|
143
143
|
obj[:valueUnion][:boolean]
|
144
144
|
when :ddwaf_obj_string
|
145
|
-
|
145
|
+
# NOTE: FFI's `AbstractMemoryPointer#read_bytes` returns a binary string,
|
146
|
+
# which is not automatically encoded as UTF-8 and will raise an error
|
147
|
+
# if it contains non-ASCII characters and is used in a JSON#generate call.
|
148
|
+
bytes = obj[:valueUnion][:stringValue].read_bytes(obj[:nbEntries])
|
149
|
+
bytes.ascii_only? ? bytes : bytes.force_encoding(Encoding::UTF_8)
|
146
150
|
when :ddwaf_obj_signed
|
147
151
|
obj[:valueUnion][:intValue]
|
148
152
|
when :ddwaf_obj_unsigned
|
@@ -3,7 +3,9 @@ module Datadog
|
|
3
3
|
module WAF
|
4
4
|
module VERSION
|
5
5
|
BASE_STRING = '1.22.0'
|
6
|
-
|
6
|
+
# NOTE: Every change to the `BASE_STRING` should be accompanied
|
7
|
+
# by a reset of the patch version in the `STRING` below.
|
8
|
+
STRING = "#{BASE_STRING}.0.2"
|
7
9
|
MINIMUM_RUBY_VERSION = '2.5'
|
8
10
|
end
|
9
11
|
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libddwaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.0.0.
|
4
|
+
version: 1.22.0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: ffi
|
@@ -77,6 +78,7 @@ licenses:
|
|
77
78
|
- BSD-3-Clause
|
78
79
|
metadata:
|
79
80
|
allowed_push_host: https://rubygems.org
|
81
|
+
post_install_message:
|
80
82
|
rdoc_options: []
|
81
83
|
require_paths:
|
82
84
|
- lib
|
@@ -91,7 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
93
|
- !ruby/object:Gem::Version
|
92
94
|
version: 2.0.0
|
93
95
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.5.21
|
97
|
+
signing_key:
|
95
98
|
specification_version: 4
|
96
99
|
summary: Datadog WAF
|
97
100
|
test_files: []
|