diff options
author | John Levon <john.levon@nutanix.com> | 2022-04-21 13:43:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 13:43:44 +0100 |
commit | 3779fca8c766b18b6d68feda9ed7958aa60bd4cf (patch) | |
tree | 07401acbf0d8656dc1de00b2a9ecb3fec1d2a932 /Makefile | |
parent | 9ad7474568a6c9f1fbb12fb8048f2083078a8144 (diff) | |
download | libvfio-user-3779fca8c766b18b6d68feda9ed7958aa60bd4cf.zip libvfio-user-3779fca8c766b18b6d68feda9ed7958aa60bd4cf.tar.gz libvfio-user-3779fca8c766b18b6d68feda9ed7958aa60bd4cf.tar.bz2 |
support AFL++ fuzzing (#623)
To support fuzzing with AFL++, add a "pipe" transport that reads from stdin and
outputs to stdout: this is the most convenient way of doing fuzzing.
Add some docs on how to run a fuzzing session.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -129,13 +129,13 @@ endif pre-push: realclean $(RSTLINT) docs/vfio-user.rst $(FLAKE8) --extend-ignore=F405,F403,E128,E131,E127 $$(find . -name '*.py') - make test WITH_ASAN=1 + make test WITH_ASAN=1 WITH_TRAN_PIPE=1 make realclean - make test CC=clang BUILD_TYPE=rel - make test CC=clang + make test CC=clang BUILD_TYPE=rel WITH_TRAN_PIPE=1 + make test CC=clang WITH_TRAN_PIPE=1 make realclean - make test CC=gcc BUILD_TYPE=rel - make test CC=gcc + make test CC=gcc BUILD_TYPE=rel WITH_TRAN_PIPE=1 + make test CC=gcc WITH_TRAN_PIPE=1 make pytest-valgrind make install DESTDIR=tmp.install @@ -168,6 +168,7 @@ endif -D "CMAKE_BUILD_TYPE:STRING=$(CMAKE_BUILD_TYPE)" \ -D "CMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)" \ -D "WITH_ASAN=$(WITH_ASAN)" \ + -D "WITH_TRAN_PIPE=$(WITH_TRAN_PIPE)" \ $(CURDIR) tags: |