interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / om / tls / test / fuzz / aflpp.sh

17 lines · 1026 bytes Raw Blame History
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.
7set -eu
8DEST=${1:?usage: aflpp.sh DEST}
9D=$(cd -P "$(dirname "$0")" && pwd -P)
10IMG=ubuntu@sha256:68ee22004a9109b44973313b02ff7b1de250f1de0f5ecb628d73f579aaff33ac
11git clone --branch v4.40c https://github.com/AFLplusplus/AFLplusplus.git "$DEST"
12cd "$DEST"
13[ "$(git rev-parse HEAD)" = e5a8ba39ecf97d05e286fdd4e01da96554dbf64f ] || { echo "AFL++ tag moved" >&2; exit 1; }
14git apply "$D/aflpp-exitrange.patch"
15nice -n 19 ionice -c3 make -j2 afl-fuzz afl-showmap afl-tmin
16docker run --rm -v "$DEST":/aflpp -v "$D/build-qemu-docker.sh":/b.sh:ro "$IMG" sh /b.sh
17ls -l afl-qemu-trace