DragonFlyBSD Kernel Audit
DF-2245 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-2245 build: compiles the standalone harness that replicates the in-kernel
# kqsort algorithm (vulnerable + fixed) and reports max recursion depth on
# several input distributions including a median-of-3 killer adversary.
set -e
cc -O2 -Wall -o kqsort_depth_harness kqsort_depth_harness.c
echo "BUILD_OK: kqsort_depth_harness"