#!/bin/sh
# DF-0315 build script -- compiles the wg_peer UAF racer.
# Run as the unprivileged user (maxx) on the DragonFly guest:
# cd findings/poc/DF-0315 && ./build.sh
set -e
cd "$(dirname "$0")"
cc -O2 -pthread -o wgrace wgrace.c
echo "BUILD_EXIT=$?"
ls -l wgrace