diff options
| author | Maciej Domanski <maciej.domanski@trailofbits.com> | 2022-12-27 16:15:52 +0100 |
|---|---|---|
| committer | Maciej Domanski <maciej.domanski@trailofbits.com> | 2022-12-27 16:15:52 +0100 |
| commit | 3d031f93a6366ee157cfd9a27fbb6d485d328d8e (patch) | |
| tree | 7c70b8e6dd57cdcc5844cb5219306e3a3e884400 /utils/argv_fuzzing/argv_fuzz_demo.c | |
| parent | 3a134edd889ed1bf4f8d11e8e37ebba31460fb3e (diff) | |
| download | afl++-3d031f93a6366ee157cfd9a27fbb6d485d328d8e.tar.gz | |
update
Diffstat (limited to 'utils/argv_fuzzing/argv_fuzz_demo.c')
| -rw-r--r-- | utils/argv_fuzzing/argv_fuzz_demo.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/argv_fuzzing/argv_fuzz_demo.c b/utils/argv_fuzzing/argv_fuzz_demo.c index f4375316..5fe4d704 100644 --- a/utils/argv_fuzzing/argv_fuzz_demo.c +++ b/utils/argv_fuzzing/argv_fuzz_demo.c @@ -3,7 +3,14 @@ #include "argv-fuzz-inl.h" int main(int argc, char **argv) { -AFL_INIT_ARGV(); + // Initialize the argv array for use with the AFL (American Fuzzy Lop) tool + AFL_INIT_ARGV(); + + /* Check the number of command line arguments and + compare the values of the first two arguments to specific strings. + If the number of arguments is not correct or the values do not match, + an error message is printed. If the values do match, the program + calls the abort() function. */ if (argc > 1 && strcmp(argv[1], "XYZ") == 0) { if (strcmp(argv[2], "TEST2") == 0) { abort(); |
