You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix ObjectIntrospection exposing JDK internal toString() to the WAF (#10820)
Fix ObjectIntrospection exposing JDK internal toString() to the WAF
wip
fix test for all jdks
Avoid log classes
new approach test
new approach test
change to .trie
WIP
Merge branch 'master' into alejandro.gonzalez/APPSEC-61693
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
Copy file name to clipboardExpand all lines: dd-java-agent/appsec/src/test/groovy/com/datadog/appsec/event/data/ObjectIntrospectionSpecification.groovy
+83-5Lines changed: 83 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,9 @@ class ObjectIntrospectionSpecification extends DDSpecification {
164
164
void'max number of elements is honored'() {
165
165
setup:
166
166
def m = [:]
167
-
128.times { m[it] ='b' }
167
+
128.times {
168
+
m[it] ='b'
169
+
}
168
170
169
171
when:
170
172
def result1 = convert([['a'] *255], ctx)[0]
@@ -184,7 +186,9 @@ class ObjectIntrospectionSpecification extends DDSpecification {
184
186
// Build a nested array 22 levels deep
185
187
Object[] objArray =newObject[1]
186
188
def p = objArray
187
-
22.times { p = p[0] =newObject[1] }
189
+
22.times {
190
+
p = p[0] =newObject[1]
191
+
}
188
192
189
193
when:
190
194
// Invoke conversion with context
@@ -208,7 +212,9 @@ class ObjectIntrospectionSpecification extends DDSpecification {
208
212
// Build a nested list 22 levels deep
209
213
def list = []
210
214
def p = list
211
-
22.times { p << []; p = p[0] }
215
+
22.times {
216
+
p << []; p = p[0]
217
+
}
212
218
213
219
when:
214
220
// Invoke conversion with context
@@ -232,7 +238,9 @@ class ObjectIntrospectionSpecification extends DDSpecification {
232
238
// Build a nested map 22 levels deep under key 'a'
233
239
def map = [:]
234
240
def p = map
235
-
22.times { p['a'] = [:]; p = p['a'] }
241
+
22.times {
242
+
p['a'] = [:]; p = p['a']
243
+
}
236
244
237
245
when:
238
246
// Invoke conversion with context
@@ -413,7 +421,9 @@ class ObjectIntrospectionSpecification extends DDSpecification {
0 commit comments