@@ -589,13 +589,53 @@ JAZZER_FUZZ_ENTRY_POINT=buzz npx jazzer my-fuzz-file
589589_ Note:_ In Jest mode, this option cannot be set via environment variable.
590590Instead use the native Jest flag ` --testNamePattern ` as described above.
591591
592+ ### ` engine ` : [ string]
593+
594+ Default: ` "libafl" ` in CLI mode, ` "libfuzzer" ` in Jest mode
595+
596+ Select the native fuzzing backend.
597+
598+ - ` libfuzzer ` : use the existing libFuzzer backend.
599+ - ` afl ` (alias for ` libafl ` ): use the LibAFL backend.
600+
601+ ** CLI:** Select the backend with ` --engine ` , for example:
602+
603+ ``` bash
604+ npx jazzer my-fuzz-file --engine=afl
605+ ```
606+
607+ ** Jest:** Set it in ` .jazzerjsrc.json ` :
608+
609+ ``` json
610+ {
611+ "engine" : " afl"
612+ }
613+ ```
614+
615+ LibAFL supports both ` fuzzing ` and ` regression ` mode.
616+
592617### ` fuzzerOptions ` : [ array\< string\> ]
593618
594619Default: [ ]
595620
596- Pass options to native fuzzing engine (Jazzer.js uses libFuzzer).
621+ Pass options to the selected native fuzzing engine.
622+
623+ For ` engine=libfuzzer ` , Jazzer.js supports the full libFuzzer-style argument
624+ list.
625+
626+ For ` engine=afl ` /` engine=libafl ` , Jazzer.js currently supports these options:
627+
628+ - ` -runs=<N> `
629+ - ` -seed=<N> `
630+ - ` -max_len=<N> `
631+ - ` -max_total_time=<seconds> `
632+ - ` -artifact_prefix=<path-prefix> `
633+ - ` -dict=<path> `
634+ - non-flag entries interpreted as corpus directories
635+
636+ Unsupported engine-specific flags are rejected with an explicit error.
597637
598- For a list of available options , see the
638+ For the ` libfuzzer ` backend , see the
599639[ libFuzzer documentation] ( https://llvm.org/docs/LibFuzzer.html#options ) . To get
600640a quick overview of all available options, call Jazzer.js with the libFuzzer
601641argument ` -help ` . Here is an example for the CLI mode:
0 commit comments