#!/bin/sh
# build.sh - build the DF-0790 userspace harness.
# The harness replicates the ntfs_ntvattrget ATTRLIST walk and deterministically
# proves the reclen==0 infinite loop and the reclen>len NULL deref.
set -e
cd "$(dirname "$0")"
echo "+ cc -O2 -o harness harness.c"
cc -O2 -o harness harness.c
echo "BUILD_EXIT=$?"
ls -l harness
