DF-0983 / run.sh
#!/bin/sh # DF-0983 run — demonstrates the efuse extended-header overflow. # VULNERABLE: writes 8 bytes 504 past sc->rom (rc=1). # FIXED: bounds-check skips the bad offset (rc=0). cd "$(dirname "$0")" echo "===== VULNERABLE ====="; ./hv; echo "rc=$?" echo; echo "===== FIXED (-DFIXED) ====="; ./hf; echo "rc=$?" |