#!/bin/sh
# DF-0641 build script.
# Primary, deterministic artifact: overflow_harness (proves the heap-overflow
# magnitude from the exact ssnsetup size math).  Built on the DragonFly guest.
set -e
echo "+ cc -O2 -o overflow_harness overflow_harness.c"
cc -O2 -o overflow_harness overflow_harness.c
# The kernel-path trigger + fake SMB server (best-effort; see VERDICT.md for
# why the full kernel panic is not cleanly isolated on this guest):
echo "+ cc -O2 -o fakesmb fakesmb.c"
cc -O2 -o fakesmb fakesmb.c
echo "+ cc -O2 -o trigger trigger.c -lkiconv"
cc -O2 -o trigger trigger.c -lkiconv
echo "BUILD_OK"
