libddwaf 1.5.1.0.0-x86_64-darwin → 1.5.1.0.1-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/datadog/appsec/waf/version.rb +1 -1
- data/lib/datadog/appsec/waf.rb +11 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a596d9f94ee5aed556adfa96b6e005e5e49754c4bbcfb9b58becc61e97fd41
|
4
|
+
data.tar.gz: 7c4d3f254272fcca470bb6d6d57c4b08ee9a7af6dc0a3e8a691d73399ed2eab1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39d0828579f5d75ccdf6bd73e986fde409abdb0aa82d47fe8a667efa79e316c109fd65691471718fc0e2dc03ef6f6aea5b36b4518cdd9cd8149760372f86f60
|
7
|
+
data.tar.gz: '085b54fe799d706da464a5b4488d25c2b2e3529d1db235d1900a5b0e0567f0f92c12246d51350b1a6e97dfcc83a4a655794c2bfc498295535179483d54be6d65'
|
data/CHANGELOG.md
CHANGED
data/lib/datadog/appsec/waf.rb
CHANGED
@@ -203,8 +203,8 @@ module Datadog
|
|
203
203
|
end
|
204
204
|
|
205
205
|
class Obfuscator < ::FFI::Struct
|
206
|
-
layout :key_regex, :pointer, # :charptr
|
207
|
-
:value_regex, :pointer # :charptr
|
206
|
+
layout :key_regex, :pointer, # should be :charptr
|
207
|
+
:value_regex, :pointer # should be :charptr
|
208
208
|
end
|
209
209
|
|
210
210
|
layout :limits, Limits,
|
@@ -539,15 +539,21 @@ module Datadog
|
|
539
539
|
end
|
540
540
|
|
541
541
|
def update_rule_data(data)
|
542
|
-
|
542
|
+
data_obj = Datadog::AppSec::WAF.ruby_to_object(data, coerce: false)
|
543
|
+
res = Datadog::AppSec::WAF::LibDDWAF.ddwaf_update_rule_data(@handle_obj, data_obj)
|
543
544
|
|
544
545
|
RESULT_CODE[res]
|
546
|
+
ensure
|
547
|
+
Datadog::AppSec::WAF::LibDDWAF.ddwaf_object_free(data_obj) if data_obj
|
545
548
|
end
|
546
549
|
|
547
550
|
def toggle_rules(map)
|
548
|
-
|
551
|
+
map_obj = Datadog::AppSec::WAF.ruby_to_object(map, coerce: false)
|
552
|
+
res = Datadog::AppSec::WAF::LibDDWAF.ddwaf_toggle_rules(@handle_obj, map_obj)
|
549
553
|
|
550
554
|
RESULT_CODE[res]
|
555
|
+
ensure
|
556
|
+
Datadog::AppSec::WAF::LibDDWAF.ddwaf_object_free(map_obj) if map_obj
|
551
557
|
end
|
552
558
|
|
553
559
|
private
|
@@ -627,7 +633,7 @@ module Datadog
|
|
627
633
|
|
628
634
|
max_container_size = LibDDWAF::DDWAF_MAX_CONTAINER_SIZE
|
629
635
|
max_container_depth = LibDDWAF::DDWAF_MAX_CONTAINER_DEPTH
|
630
|
-
max_string_length = LibDDWAF::
|
636
|
+
max_string_length = LibDDWAF::DDWAF_MAX_STRING_LENGTH
|
631
637
|
|
632
638
|
input_obj = Datadog::AppSec::WAF.ruby_to_object(input,
|
633
639
|
max_container_size: max_container_size,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libddwaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.1.0.
|
4
|
+
version: 1.5.1.0.1
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: 2.0.0
|
65
65
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.4.4
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: Datadog WAF
|