Skip to content

Set the -max_len argument in junit #885

@svdbtno

Description

@svdbtno

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:

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions