-
Notifications
You must be signed in to change notification settings - Fork 161
Description
We want to have more data available in the FuzzedDataProvider
. Currently we only receive very few bytes. We would like to receive more therefore we want to set the -max_len for libFuzzer.
We currently get the following info log= INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
.
We tried setting it using the following command: JAZZER_FUZZ=1 mvn test -Dtest=ourTest#testMethod -Djazzer.internal.args.0="-max_len=50000"
and we tried JAZZER_FUZZ=1 mvn test -Dtest=ourTest#testMethod -Dmax_len=50000
both did not work. Any suggestions?
PS. jazzer.internal.args.0
is used, since we saw the following:
jazzer/src/main/java/com/code_intelligence/jazzer/junit/FuzzTestExecutor.java
Lines 270 to 280 in 1f2bdf9
private static List<String> getLibFuzzerArgs(ExtensionContext extensionContext) { | |
List<String> args = new ArrayList<>(); | |
for (int i = 0; ; i++) { | |
Optional<String> arg = extensionContext.getConfigurationParameter("jazzer.internal.arg." + i); | |
if (!arg.isPresent()) { | |
break; | |
} | |
args.add(arg.get()); | |
} | |
return args; | |
} |