blob: 4a79457b25885d6f0656559a5f12edfce6b2ed9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1. Compile file/libmagic
```shell
$ cd file-5.37/
$ CC="honggfuzz/hfuzz_cc/hfuzz-clang" ./configure --enable-static --disable-shared
$ make -j$(nproc)
```
2. Compile/link the persistent-file
```shell
$ honggfuzz/hfuzz_cc/hfuzz-clang -I ./file-5.37/ honggfuzz/examples/file/persistent-file.c -o persistent-file ./file-5.37/src/.libs/libmagic.a -lz
```
3. Fuzz it!
```shell
$ honggfuzz/honggfuzz --input inputs/ -- ./persistent-file ./file-5.37/magic/magic.mgc
```
|