I have build wasmer with:
```
CC=afl-gcc CXX=afl-g++ make
```
when I run `afl-fuzz` on the target like this:
```
afl-fuzz -i input/ -o . ../wasmer/target/release/wasmer run @@
```
it gives the following error (with AFL_DEBUG=1):
```
error: failed to run `/path/to/test/./default/.cur_input`
│ 1: module instantiation failed (compiler: cranelift)
╰─▶ 2: WebAssembly translation error: Error when converting wat: expected at least one module field
--> <anon>:1:1
|
1 |
| ^
[-] Hmm, looks like the target binary terminated before we could complete a
handshake with the injected code. You can try the following:
- The target binary crashes because necessary runtime conditions it needs
are not met. Try to:
1. Run again with AFL_DEBUG=1 set and check the output of the target
binary for clues.
2. Run again with AFL_DEBUG=1 and 'ulimit -c unlimited' and analyze the
generated core dump.
- Possibly the target requires a huge coverage map and has CTORS.
Retry with setting AFL_MAP_SIZE=10000000.
Otherwise there is a horrible bug in the fuzzer.
Poke <afl-...@googlegroups.com> for troubleshooting tips.
```
P.S. I have changed parent directories to "/path/to" that is not so important