DragonFlyBSD Kernel Audit
DF-0350 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0350 — run both harness variants and show the before/after contrast.
#   harness        : proves the bug (unbounded growth + attacker lifetime)
#   harness_fixed  : proves the fix (table capped, lifetime clamped)
set -e
cd "$(dirname "$0")"

echo "############ BUG PRESENT (unpatched logic) ############"
./harness
echo
echo "############ FIXED (cap + clamp applied) ############"
./harness_fixed
echo
echo "RUN_EXIT=$?"