Scripts/info for running AFL on FreeBSD programs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- size=512kb
-
- for fstype in -O1 -O2; do
- for secsize in -S512 -S4096; do
- for blkfrag in "" "-b 4096 -f 512"; do
- if [ ! -z "$blkfrag" ]; then
- part=".b4096f512"
- else
- part=""
- fi
- fname="test.$fstype.$secsize$part.img"
- truncate -s "$size" "$fname"
- dev=$(mdconfig -f "$fname")
- newfs $fstype $secsize $blkfrag "$dev"
- mdconfig -d -u "$dev"
- done
- done
- done
|