-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Q] How to enable value profiling when running a Junit @FuzzTest ? #668
Comments
OK, I think I found the answer browsing the code at
The solution is to add a system property with the name hardcoded in jazzer before executing the unit test. @BeforeAll
static void beforeAll() {
System.setProperty("jazzer.valueprofile", "true");
} I will leave this open for someone to confirm that this is actually the intended way to do this. Might be worth adding to the docs. |
Hi @mdindoffer - I guess that we can neither confirm nor deny....lol |
The
@FuzzTest
annotation has only one config parametermaxDuration
. How can I pass the-use_value_profile=1
to libFuzzer when running a Junit fuzzTest from IntelliJ IDE?I naively tried adding this as an environment property (thinking this could be handled the same way as
JAZZER_FUZZ
), and a java system property, but that didn't help.Do I have to use the standalone jazzer binary to use other libFuzzer options? The "Advanced techniques" docs only tell me to pass this flag, but since it's the JVM starting libfuzzer indirectly, I don't know how to do this.
The text was updated successfully, but these errors were encountered: