aboutsummaryrefslogtreecommitdiff
path: root/fuzzing/fuzz-input.options
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-03-26 01:53:57 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-04-25 01:23:00 +0200
commitb5f4b774b161bdfcc818bb49a91fb655a5a775f7 (patch)
tree49fb432bc2b89dfb1db218a74c834efa81051264 /fuzzing/fuzz-input.options
parentbdba265ddf1124c4d5475264532254c728b7e78c (diff)
downloadslirp-b5f4b774b161bdfcc818bb49a91fb655a5a775f7.zip
slirp-b5f4b774b161bdfcc818bb49a91fb655a5a775f7.tar.gz
slirp-b5f4b774b161bdfcc818bb49a91fb655a5a775f7.tar.bz2
Start some fuzzing test
You can run the tests over the corpus with a "regular" build, then $ fuzzing/fuzz-input ../fuzzing/IN/* Or building with fuzzing enabled, and running: $ CFLAGS="-fsanitize=fuzzer" CC=clang CXX=clang++ meson -Db_lundef=false $ fuzzing/fuzz-input ../fuzzing/IN I have an initial corpus which was generated by running fuzz-input for a few hours starting with qemu.pkt, which is the first packet sent by qemu. Sadly, it only covers 25%... I tried to increase the coverage manually, see for example tftp-get-blah.pkt, but that's not so simple, as multiple packets may be required to setup a session etc. Neverthess, the fuzzing already found a few issues, so it might be worth to add it in this current form. fuzzing/oss-fuzz.sh is used by oss-fuzz, for Google fuzzing. (see documentation if you want to reproduce the build locally) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'fuzzing/fuzz-input.options')
-rw-r--r--fuzzing/fuzz-input.options2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzing/fuzz-input.options b/fuzzing/fuzz-input.options
new file mode 100644
index 0000000..7948888
--- /dev/null
+++ b/fuzzing/fuzz-input.options
@@ -0,0 +1,2 @@
+[libfuzzer]
+max_len = 1024