START usr.bin/gzip 2024-10-15T22:30:05Z ==== run-regress-integrity ==== ==== run-regress-integrity ==== # create gz gzip -v rc.gz 17318 bytes in, 6724 bytes out # check that everything is ok gzip -vt rc.gz rc.gz: OK ==== run-regress-truncate-2k ==== ==== run-regress-truncate-2k ==== # truncate at 2k gzip rc.gz dd if=rc.gz bs=1k count=2 of=2k.gz 2+0 records in 2+0 records out 2048 bytes transferred in 0.000 secs (21721607 bytes/sec) # check that truncation is detected ! gzip -vt 2k.gz 2k.gz: gzip: 2k.gz: Input/output error ==== run-regress-truncate-1k ==== ==== run-regress-truncate-1k ==== # truncate at 1k gzip rc.gz dd if=rc.gz bs=1k count=1 of=1k.gz 1+0 records in 1+0 records out 1024 bytes transferred in 0.000 secs (12340620 bytes/sec) # check that truncation is detected ! gzip -vt 1k.gz 1k.gz: gzip: 1k.gz: Input/output error ==== run-regress-skip ==== ==== run-regress-skip ==== # skip some data in the middle gzip rc.gz dd if=rc.gz bs=1k count=1 of=skip.gz 1+0 records in 1+0 records out 1024 bytes transferred in 0.000 secs (12493594 bytes/sec) dd if=rc.gz bs=1k seek=2 skip=2 conv=notrunc of=skip.gz 4+1 records in 4+1 records out 4676 bytes transferred in 0.000 secs (37570303 bytes/sec) # check that corruption is detected ! gzip -vt skip.gz skip.gz: gzip: skip.gz: crc error OK ==== run-regress-fuzz ==== ==== run-regress-fuzz ==== # simple fuzzer that modifies one random byte at a random offset gzip rc.gz dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=1; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "1/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 1/100: fuzzing byte @1958: 1761607680 -> 231 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=2; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "2/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 2/100: fuzzing byte @1555: -1073741824 -> 80 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=3; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "3/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 3/100: fuzzing byte @1152: 369098752 -> 185 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=4; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "4/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 4/100: fuzzing byte @749: 1224736768 -> 34 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=5; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "5/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 5/100: fuzzing byte @346: 2046820352 -> 139 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=6; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "6/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 6/100: fuzzing byte @1991: 1224736768 -> 244 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=7; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "7/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 7/100: fuzzing byte @1588: -1006632960 -> 93 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=8; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "8/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 8/100: fuzzing byte @1185: 1157627904 -> 198 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=9; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "9/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 9/100: fuzzing byte @782: 2097152000 -> 47 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=10; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "10/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 10/100: fuzzing byte @379: -285212672 -> 152 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=11; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "11/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 11/100: fuzzing byte @2024: 419430400 -> 1 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=12; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "12/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 12/100: fuzzing byte @1621: -1224736768 -> 106 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=13; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "13/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 13/100: fuzzing byte @1218: -1677721600 -> 211 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=14; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "14/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 14/100: fuzzing byte @815: -402653184 -> 60 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=15; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "15/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 15/100: fuzzing byte @412: 1962934272 -> 165 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=16; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "16/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 16/100: fuzzing byte @2057: -536870912 -> 14 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=17; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "17/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 17/100: fuzzing byte @1654: 1442840576 -> 119 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=18; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "18/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 18/100: fuzzing byte @1251: 16777216 -> 224 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=19; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "19/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 19/100: fuzzing byte @848: -385875968 -> 73 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=20; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "20/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 20/100: fuzzing byte @445: -1090519040 -> 178 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=21; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "21/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 21/100: fuzzing byte @2090: 1677721600 -> 27 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=22; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "22/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 22/100: fuzzing byte @1687: -385875968 -> 132 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=23; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "23/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 23/100: fuzzing byte @1284: 603979776 -> 237 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=24; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "24/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 24/100: fuzzing byte @881: -1258291200 -> 86 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=25; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "25/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 25/100: fuzzing byte @478: 486539264 -> 191 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=26; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "26/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 26/100: fuzzing byte @2123: 1174405120 -> 40 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=27; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "27/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 27/100: fuzzing byte @1720: -1610612736 -> 145 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=28; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "28/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 28/100: fuzzing byte @1317: 268435456 -> 250 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=29; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "29/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 29/100: fuzzing byte @914: 352321536 -> 99 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=30; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "30/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 30/100: fuzzing byte @511: -520093696 -> 204 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=31; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "31/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 31/100: fuzzing byte @2156: 1006632960 -> 53 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=32; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "32/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 32/100: fuzzing byte @1753: -2080374784 -> 158 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=33; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "33/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 33/100: fuzzing byte @1350: 301989888 -> 7 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=34; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "34/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 34/100: fuzzing byte @947: 1073741824 -> 112 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=35; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "35/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 35/100: fuzzing byte @544: 1929379840 -> 217 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=36; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "36/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 36/100: fuzzing byte @2189: -1358954496 -> 66 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=37; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "37/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 37/100: fuzzing byte @1786: 838860800 -> 171 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=38; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "38/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 38/100: fuzzing byte @1383: -1308622848 -> 20 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=39; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "39/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 39/100: fuzzing byte @980: 0 -> 125 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=40; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "40/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 40/100: fuzzing byte @577: -1493172224 -> 230 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=41; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "41/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 41/100: fuzzing byte @2222: -2063597568 -> 79 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=42; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "42/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 42/100: fuzzing byte @1819: 16777216 -> 184 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=43; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "43/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 43/100: fuzzing byte @1416: -721420288 -> 33 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=44; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "44/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 44/100: fuzzing byte @1013: 939524096 -> 138 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=45; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "45/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 45/100: fuzzing byte @610: 1124073472 -> 243 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=46; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "46/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 46/100: fuzzing byte @2255: 939524096 -> 92 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=47; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "47/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 47/100: fuzzing byte @1852: -1056964608 -> 197 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=48; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "48/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 48/100: fuzzing byte @1449: 637534208 -> 46 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=49; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "49/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 49/100: fuzzing byte @1046: -788529152 -> 151 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=50; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "50/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 50/100: fuzzing byte @643: -788529152 -> 0 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=51; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "51/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 51/100: fuzzing byte @2288: -1342177280 -> 105 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=52; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "52/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 52/100: fuzzing byte @1885: -184549376 -> 210 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=53; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "53/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 53/100: fuzzing byte @1482: -1392508928 -> 59 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=54; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "54/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 54/100: fuzzing byte @1079: 352321536 -> 164 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=55; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "55/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 55/100: fuzzing byte @676: -922746880 -> 13 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=56; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "56/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 56/100: fuzzing byte @273: 335544320 -> 118 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=57; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "57/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 57/100: fuzzing byte @1918: -1459617792 -> 223 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=58; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "58/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 58/100: fuzzing byte @1515: -1073741824 -> 72 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=59; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "59/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 59/100: fuzzing byte @1112: 117440512 -> 177 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=60; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "60/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 60/100: fuzzing byte @709: 2030043136 -> 26 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=61; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "61/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 61/100: fuzzing byte @306: 1509949440 -> 131 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=62; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "62/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 62/100: fuzzing byte @1951: -1694498816 -> 236 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=63; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "63/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 63/100: fuzzing byte @1548: 1291845632 -> 85 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=64; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "64/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 64/100: fuzzing byte @1145: 603979776 -> 190 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=65; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "65/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 65/100: fuzzing byte @742: 872415232 -> 39 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=66; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "66/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 66/100: fuzzing byte @339: 738197504 -> 144 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=67; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "67/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 67/100: fuzzing byte @1984: 201326592 -> 249 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=68; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "68/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 68/100: fuzzing byte @1581: -1828716544 -> 98 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=69; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "69/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 69/100: fuzzing byte @1178: 1426063360 -> 203 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=70; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "70/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 70/100: fuzzing byte @775: 1459617792 -> 52 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=71; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "71/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 71/100: fuzzing byte @372: 2063597568 -> 157 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=72; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "72/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 72/100: fuzzing byte @2017: 2130706432 -> 6 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=73; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "73/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 73/100: fuzzing byte @1614: -268435456 -> 111 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=74; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "74/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 74/100: fuzzing byte @1211: 1593835520 -> 216 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=75; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "75/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 75/100: fuzzing byte @808: 369098752 -> 65 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=76; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "76/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 76/100: fuzzing byte @405: 67108864 -> 170 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=77; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "77/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 77/100: fuzzing byte @2050: 1627389952 -> 19 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=78; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "78/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 78/100: fuzzing byte @1647: -16777216 -> 124 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=79; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "79/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 79/100: fuzzing byte @1244: 2097152000 -> 229 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=80; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "80/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 80/100: fuzzing byte @841: -1308622848 -> 78 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=81; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "81/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 81/100: fuzzing byte @438: 671088640 -> 183 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=82; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "82/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 82/100: fuzzing byte @2083: 1543503872 -> 32 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=83; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "83/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 83/100: fuzzing byte @1680: -150994944 -> 137 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=84; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "84/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 84/100: fuzzing byte @1277: -1308622848 -> 242 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=85; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "85/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 85/100: fuzzing byte @874: 1375731712 -> 91 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=86; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "86/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 86/100: fuzzing byte @471: -1761607680 -> 196 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=87; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "87/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 87/100: fuzzing byte @2116: -335544320 -> 45 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=88; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "88/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 88/100: fuzzing byte @1713: 771751936 -> 150 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=89; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "89/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 89/100: fuzzing byte @1310: -2046820352 -> 255 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=90; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "90/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 90/100: fuzzing byte @907: -989855744 -> 104 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=91; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "91/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 91/100: fuzzing byte @504: 1828716544 -> 209 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=92; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "92/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 92/100: fuzzing byte @2149: 1174405120 -> 58 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=93; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "93/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 93/100: fuzzing byte @1746: 335544320 -> 163 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=94; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "94/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 94/100: fuzzing byte @1343: 503316480 -> 12 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=95; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "95/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 95/100: fuzzing byte @940: -520093696 -> 117 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=96; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "96/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 96/100: fuzzing byte @537: -1526726656 -> 222 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=97; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "97/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 97/100: fuzzing byte @2182: 1862270976 -> 71 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=98; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "98/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 98/100: fuzzing byte @1779: 100663296 -> 176 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=99; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "99/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 99/100: fuzzing byte @1376: -1090519040 -> 25 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK dd if=rc.gz bs=1k of=fuzz.gz status=none RANDOM=100; where=$((RANDOM % 2048 + 256)); fuzz=$((RANDOM % 256)); orig=`dd if=rc.gz bs=1 skip=$where count=1 status=none | hexdump -e '"%d"'`; echo "100/100: fuzzing byte @$where: $orig -> $fuzz"; echo -n \\0`printf "%o" $fuzz` | dd bs=1 seek=$where conv=notrunc of=fuzz.gz status=none 100/100: fuzzing byte @973: -268435456 -> 130 cmp -s rc.gz fuzz.gz || ! gzip -vt fuzz.gz fuzz.gz: gzip: fuzz.gz: crc error OK ==== run-regress-gunzip ==== ==== run-regress-gunzip ==== # gzip and gunzip gzip -v rc.gz 17318 bytes in, 6724 bytes out gunzip -f rc.gz # check that uncompressed file does match diff -up /etc/rc rc ==== run-regress-multi ==== ==== run-regress-multi ==== # compress multiple files gzip -c /etc/rc /etc/motd >multi.gz # check multiple gzip file gzip -vt multi.gz multi.gz: OK gunzip -f multi.gz # check that gunzipped files do match cat /etc/rc /etc/motd >rcmotd diff -up rcmotd multi ==== run-regress-name ==== ==== run-regress-name ==== # check gunzip -N gzip -c /etc/rc >in.gz rm -f rc gunzip -N in.gz diff -up /etc/rc rc # check that -N works with -l gzip -c /etc/rc >in.gz gzip -lN in.gz | grep -q ' rc$' gzip -lN out diff -up /etc/rc out # check that zcat ignores -N rm -f out zcat -N in.gz >out diff -up /etc/rc out ==== run-regress-perm-zip ==== ==== run-regress-perm-zip ==== # compress file with special permissions cat /etc/rc >perm chmod 614 perm rm -f perm.gz gzip perm ls -l perm.gz | grep '^-rw---xr-- ' -rw---xr-- 1 root wobj 6729 Oct 16 00:30 perm.gz ==== run-regress-perm-unzip ==== ==== run-regress-perm-unzip ==== # uncompress file with special permissions gzip perm.gz chmod 614 perm.gz rm -f perm gunzip perm.gz ls -l perm | grep '^-rw---xr-- ' -rw---xr-- 1 root wobj 17318 Oct 16 00:30 perm ==== run-regress-owner-zip ==== ==== run-regress-owner-zip ==== # compress file as root with user and group nobody rm -f owner cat /etc/rc >owner chown nobody:nobody owner rm -f owner.gz gzip owner ls -l owner.gz | grep ' nobody *nobody ' -rw-r--r-- 1 nobody nobody 6730 Oct 16 00:30 owner.gz ==== run-regress-owner-unzip ==== ==== run-regress-owner-unzip ==== # uncompress file with special permissions rm -f owner.gz gzip owner.gz chown nobody:nobody owner.gz rm -f owner gunzip owner.gz ls -l owner | grep ' nobody *nobody ' -rw-r--r-- 1 nobody nobody 17318 Oct 16 00:30 owner PASS usr.bin/gzip Duration 0m09.49s