about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaciej Domanski <maciej.domanski@trailofbits.com>2022-12-28 10:58:44 +0100
committerMaciej Domanski <maciej.domanski@trailofbits.com>2022-12-28 10:58:44 +0100
commit99c67defb4414c1f207123e2930d0500d338c6b8 (patch)
tree587f82f9a33f41b5fb808d70badc60b2e07818cc
parent209527907ff9a843fe9d353ec1a1602f88579982 (diff)
downloadafl++-99c67defb4414c1f207123e2930d0500d338c6b8.tar.gz
readme cleanup
-rw-r--r--utils/argv_fuzzing/README.md18
1 files changed, 11 insertions, 7 deletions
diff --git a/utils/argv_fuzzing/README.md b/utils/argv_fuzzing/README.md
index d248cf93..14fe5e2d 100644
--- a/utils/argv_fuzzing/README.md
+++ b/utils/argv_fuzzing/README.md
@@ -1,18 +1,22 @@
 # argv_fuzzing feature
-AFL++ supports fuzzing file inputs or stdin. The argv_fuzzing feature allows for the fuzzing of arguments
-passed to a program from the command line interface rather than from standard input.  
+AFL++ supports fuzzing file inputs or stdin. The argv_fuzzing feature
+allows for the fuzzing of arguments passed to a program from the command line
+interface rather than from standard input.  
 
 ## With source code
-When the source code is available, a specific macro from the `argv-fuzz-inl.h` header file can be used to change
-the program's behavior to build argv from STDIN.
+When the source code is available, a specific macro from the `argv-fuzz-inl.h`
+header file can be used to change the program's behavior to build argv from STDIN.
 
 ### Without persistent mode
 Conditions needed to use the argv_fuzzing feature:
 1. Include `argv-fuzz-inl.h` header file (`#include "argv-fuzz-inl.h"`)
-2. Identify your main function that parses arguments (for example, `int main(int argc, char **argv)`)
-3. Use one of the following macros (near the beginning of the main function) to initialize argv with the fuzzer's input:
+2. Identify your main function that parses arguments
+(for example, `int main(int argc, char **argv)`)
+3. Use one of the following macros (near the beginning of the main function)
+to initialize argv with the fuzzer's input:
    - `AFL_INIT_ARGV();` or
-   - `AFL_INIT_SET0("prog_name");` to preserve `argv[0]` (the name of the program being executed)
+   - `AFL_INIT_SET0("prog_name");` to preserve `argv[0]`
+   (the name of the program being executed)
    
 see: [argv_fuzz_demo.c](argv_fuzz_demo.c)