aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/persistent_demo/persistent_demo_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/persistent_demo/persistent_demo_new.c b/examples/persistent_demo/persistent_demo_new.c
index b8b4cda0..a29792ff 100644
--- a/examples/persistent_demo/persistent_demo_new.c
+++ b/examples/persistent_demo/persistent_demo_new.c
@@ -58,11 +58,11 @@ int main(int argc, char **argv) {
and similar hiccups. */
__AFL_INIT();
- buf = __AFL_FUZZ_TESTCASE_BUF;
+ buf = __AFL_FUZZ_TESTCASE_BUF; // this must be assigned before __AFL_LOOP!
while (__AFL_LOOP(1000)) { // increase if you have good stability
- len = __AFL_FUZZ_TESTCASE_LEN;
+ len = __AFL_FUZZ_TESTCASE_LEN; // do not use the macro directly in a call!
fprintf(stderr, "input: %zd \"%s\"\n", len, buf);