#!/bin/sh
# DF-0876 — build the deterministic C harness on the guest.
# The harness transcribes ext2_gd_csum (sys/vfs/ext2fs/ext2_csum.c:666-704)
# against a poison-padded buffer and proves the OOB read length is 65503 bytes
# when e3fs_desc_size=0xFFFF.
#
# Usage: ./build.sh
set -e
cd "$(dirname "$0")"
cc -O2 -o harness harness.c
echo "BUILD_OK: harness"
