diff options
author | vanhauser-thc <vh@thc.org> | 2024-06-22 22:22:01 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-06-22 22:22:01 +0200 |
commit | 540d741df0541e0e41e600672245ca1e867c5ef4 (patch) | |
tree | b572a2534862b24f1d802d79ccefc4d3b921a05e | |
parent | ecb5854be08fa978be3320c1f8333f6cc3261fec (diff) | |
download | afl++-540d741df0541e0e41e600672245ca1e867c5ef4.tar.gz |
nits atnwalk
-rw-r--r-- | custom_mutators/atnwalk/README.md | 2 | ||||
-rw-r--r-- | custom_mutators/atnwalk/atnwalk.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/custom_mutators/atnwalk/README.md b/custom_mutators/atnwalk/README.md index 730349a3..7dbe8ee5 100644 --- a/custom_mutators/atnwalk/README.md +++ b/custom_mutators/atnwalk/README.md @@ -13,7 +13,7 @@ Just type `make` to build `atnwalk.so`. **NOTE:** The commands below just demonstrate an example how running ATNwalk looks like and require a working [testbed](https://github.com/atnwalk/testbed) ```bash -# create the required a random seed first +# create the required random seed first mkdir -p ~/campaign/example/seeds cd ~/campaign/example/seeds head -c1 /dev/urandom | ~/atnwalk/build/javascript/bin/decode -wb > seed.decoded 2> seed.encoded diff --git a/custom_mutators/atnwalk/atnwalk.c b/custom_mutators/atnwalk/atnwalk.c index c3a2cd95..45ccc181 100644 --- a/custom_mutators/atnwalk/atnwalk.c +++ b/custom_mutators/atnwalk/atnwalk.c @@ -180,7 +180,8 @@ size_t fail_fatal(int fd_socket, uint8_t **out_buf) { if (fd_socket != -1) { close(fd_socket); } *out_buf = NULL; - return 0; + fprintf(stderr, "atnwalk.socket not found in current directory!\n"); + exit(-1); } |