DragonFlyBSD Kernel Audit
DF-1869 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# Build both variants of the DF-1869 harness.
set -e
cd "$(dirname "$0")"
echo "Building unfixed (verbatim kernel logic)..."
cc -O2 -Wall -o harness harness.c
echo "Building fixed (offset+len <= edtlen guard)..."
cc -O2 -Wall -o harness_fixed harness.c
ls -l harness harness_fixed
echo "BUILD_EXIT=$?"