Edit

kc3-lang/libxkbcommon/fuzz/fuzz.sh

Branch :

  • Show log

    Commit

  • Author : Peter Hutterer
    Date : 2023-05-04 20:35:39
    Hash : 98b33142
    Message : README: use meson compile/test over ninja This is backend-agnostic and the recommended way to invoke compilation. This requires meson 0.55 (July 2020) and we only require 0.51 but at this point I'm expecting most users who require the README instructions will have a recent-enough meson anyway.

  • fuzz/fuzz.sh
  • #!/bin/sh
    set -e
    
    case "$1" in
        keymap|compose)
            ;;
        *)
            echo "usage: $0 keymap|compose" 1>&2
            exit 1
            ;;
    esac
    
    export CC=afl-clang-fast
    export AFL_HARDEN=1
    test -d fuzz/build || meson setup -Db_lto=true fuzz/build
    meson compile -C fuzz/build
    afl-fuzz -i fuzz/$1/testcases -x fuzz/$1/dict -o fuzz/$1/findings -t 200 -m 10 -- ./fuzz/build/fuzz-$1 @@