1085 / run.sh
#!/bin/sh # DF-1085 run โ exercises the verbatim crom_parse_text() kernel code path # (copied into userspace) with a crafted IEEE 1212 Configuration ROM whose # text leaf has crc_len < 2. # # Two binaries: # ./harness โ verbatim kernel logic (the BUG): expects BUG CONFIRMED # for crc_len=0 and crc_len=1; "no bug" for crc_len=2. # ./harness_fixed โ same code + the crc_len<2 guard from fix.diff: # "canary intact" for all cases. # # Run on the DragonFly guest as any user. cc 8.3 (DragonFly). set -e cd "$(dirname "$0")" echo "############ baseline (buggy) logic ############" ./harness echo echo "############ fixed logic (with crc_len<2 guard) ############" ./harness_fixed |