DF-1046 / run.sh
#!/bin/sh # DF-1046 harness run โ exercises both variants at bCtrlSize=32 (the wrap # threshold identified in the finding). # # BUGGY (uint8_t i, current kernel): expected ~4096 OOB writes (capped). # FIXED (unsigned int i, patched kernel): expected 0 OOB writes, clean exit. set -e cd "$(dirname "$0")" echo "=== BUGGY (uint8_t i โ mirrors sys/bus/u4b/uvc/uvc_ctrls.c:925 today) ===" ./harness_buggy 32 echo echo "=== FIXED (unsigned int i โ mirrors the patched kernel) ===" ./harness_fixed 32 ./harness_fixed 64 |