aboutsummaryrefslogtreecommitdiff
path: root/sanitizers
diff options
context:
space:
mode:
authorFabian Meumertzheim <fabian@meumertzhe.im>2022-03-07 18:43:57 +0100
committerFabian Meumertzheim <fabian@meumertzhe.im>2022-03-08 13:04:19 +0100
commitbd4e75f7892478affad0c298dd20731b4483b855 (patch)
tree0fb496899d4c07435facae12c6a8039984da022a /sanitizers
parent1d9cc3f76a1478372c2af40d1f46e9099355b678 (diff)
downloadjazzer-api-bd4e75f7892478affad0c298dd20731b4483b855.tar.gz
Make crash reproducer verification more reproducible
* Sort crash reproducers by last modification time and only verify the most recent one, which corresponds to the last finding when using --keep_going. * Switch to a list of expected findings as the exact finding type can differ not only between different platforms, but also between different JDK versions on a single platform.
Diffstat (limited to 'sanitizers')
-rw-r--r--sanitizers/src/test/java/com/example/BUILD.bazel4
1 files changed, 2 insertions, 2 deletions
diff --git a/sanitizers/src/test/java/com/example/BUILD.bazel b/sanitizers/src/test/java/com/example/BUILD.bazel
index e94898a4..e90faa2f 100644
--- a/sanitizers/src/test/java/com/example/BUILD.bazel
+++ b/sanitizers/src/test/java/com/example/BUILD.bazel
@@ -55,7 +55,7 @@ java_fuzz_target_test(
"ldap/MockInitialContextFactory.java",
"ldap/MockLdapContext.java",
],
- expected_finding = "javax.naming.directory.InvalidSearchFilterException",
+ expected_findings = ["javax.naming.directory.InvalidSearchFilterException"],
target_class = "com.example.LdapSearchInjection",
deps = [
"@maven//:com_unboundid_unboundid_ldapsdk",
@@ -69,7 +69,7 @@ java_fuzz_target_test(
"ldap/MockInitialContextFactory.java",
"ldap/MockLdapContext.java",
],
- expected_finding = "javax.naming.NamingException",
+ expected_findings = ["javax.naming.NamingException"],
target_class = "com.example.LdapDnInjection",
deps = [
"@maven//:com_unboundid_unboundid_ldapsdk",