DF-0616 / run.sh
#!/bin/sh # DF-0616 — run the code-level proof. # Demonstrates the OOB write on the vulnerable logic (9000-byte jumbo frame), # then shows the fix eliminates it. Pass a frame size as $1 (default 9000). cd "$(dirname "$0")" FRAME="${1:-9000}" echo "######## VULNERABLE logic (netmap_generic.c:672-674) ########" ./df0616_harness "$FRAME" echo "" echo "######## PATCHED logic (clamp to NETMAP_BUF_SIZE, mirrors :500) ########" ./df0616_harness_fixed "$FRAME" |