DragonFlyBSD Kernel Audit
DF-0350 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0350 — build the two harness variants (BUG PRESENT + FIXED) on DragonFlyBSD.
set -e
cd "$(dirname "$0")"

echo "==> building BUG-PRESENT harness (no cap, no clamp)"
cc -O2 -Wall -o harness harness.c

echo "==> building FIXED harness (cap + clamp, mirrors fix.diff)"
cc -O2 -Wall -DFIXED -o harness_fixed harness.c

echo "BUILD_EXIT=$?"
ls -l harness harness_fixed