omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / om / tls / test / fuzz / aflpp.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # aflpp.sh DEST: build the pinned AFL++ used by run.sh (host tooling, not part of the library). |
| 4 | # AFL++ v4.40c at e5a8ba39ecf97d05e286fdd4e01da96554dbf64f + aflpp-exitrange.patch (AFL_CRASH_EXITCODE=LO-HI, |
| 5 | # so every Omega trap exit 101..114 is a crash), qemu_mode for aarch64 built inside the pinned |
| 6 | # ubuntu:24.04 image because the host lacks glib headers. frida_mode cannot load static omc binaries. |
| 7 | set -eu |
| 8 | DEST=${1:?usage: aflpp.sh DEST} |
| 9 | D=$(cd -P "$(dirname "$0")" && pwd -P) |
| 10 | IMG=ubuntu@sha256:68ee22004a9109b44973313b02ff7b1de250f1de0f5ecb628d73f579aaff33ac |
| 11 | git clone --branch v4.40c https://github.com/AFLplusplus/AFLplusplus.git "$DEST" |
| 12 | cd "$DEST" |
| 13 | [ "$(git rev-parse HEAD)" = e5a8ba39ecf97d05e286fdd4e01da96554dbf64f ] || { echo "AFL++ tag moved" >&2; exit 1; } |
| 14 | git apply "$D/aflpp-exitrange.patch" |
| 15 | nice -n 19 ionice -c3 make -j2 afl-fuzz afl-showmap afl-tmin |
| 16 | docker run --rm -v "$DEST":/aflpp -v "$D/build-qemu-docker.sh":/b.sh:ro "$IMG" sh /b.sh |
| 17 | ls -l afl-qemu-trace |