From: Jérémie Astor Date: Mon, 18 May 2020 16:01:41 +0000 (+0200) Subject: :wrench: Fuzz stuff clean X-Git-Tag: nightly~1537 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5bfb3be54531786517559990c3143a330949ce3b;p=gwion.git :wrench: Fuzz stuff clean --- diff --git a/.gitignore b/.gitignore index 79d41d63..29ba8fb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ TODO* gwion +gwion-fuzz +afl .d config.mk include/generated.h diff --git a/scripts/afl-multicore.conf b/scripts/afl-multicore.conf new file mode 100644 index 00000000..232b4cc2 --- /dev/null +++ b/scripts/afl-multicore.conf @@ -0,0 +1,13 @@ +{ + "session": "SESSION", + "input": "../corpus-cmin", + "output": "./AFL", + "target": "./gwion-fuzz", + "cmdline": "", + "dict": "./scripts/afl-dict/sum", + "master_instances": 1, + "interactive": false, + "environment": [ + "AFL_PERSISTENT=1" + ] +} diff --git a/scripts/bug_notify.sh b/scripts/bug_notify.sh new file mode 100644 index 00000000..3d3626a8 --- /dev/null +++ b/scripts/bug_notify.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +wait() { + inotifywait -q -r AFL/ --format "%w%f" | tail -1 +} + +notify() { + dbus-launch notify-send -u critical -c bug \ + -i dialog-error \ + -h STRING:filename:'$1" '🐉 found bug !' +} +while true +do + file=$(wait) + [[ $file == *"crashes"* ]] || continue + base=$(basename $file) + [ ${base:0:3} = "id:" ] && notify "$base" +done