* Documented stdin behaviour.
This commit is contained in:
parent
562f045c50
commit
b2a1908029
@ -8,7 +8,7 @@ zzuf \- multiple purpose fuzzer
|
|||||||
.br
|
.br
|
||||||
[\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR]
|
[\fB\-P\fR \fIprotect\fR] [\fB\-R\fR \fIrefuse\fR]
|
||||||
.br
|
.br
|
||||||
[\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR] \fIPROGRAM\fR [\fIARGS\fR]...
|
[\fB\-I\fR \fIinclude\fR] [\fB\-E\fR \fIexclude\fR] [\fIPROGRAM\fR [\fIARGS\fR]...]
|
||||||
.br
|
.br
|
||||||
\fBzzuf \-h\fR | \fB\-\-help\fR
|
\fBzzuf \-h\fR | \fB\-\-help\fR
|
||||||
.br
|
.br
|
||||||
@ -31,6 +31,11 @@ marker before them on the command line (otherwise \fBzzuf\fR will try to
|
|||||||
interpret them as arguments for itself), eg:
|
interpret them as arguments for itself), eg:
|
||||||
.PP
|
.PP
|
||||||
\fB zzuf \-B 1000 cat \-\- \-v /dev/zero\fR
|
\fB zzuf \-B 1000 cat \-\- \-v /dev/zero\fR
|
||||||
|
.PP
|
||||||
|
When no program is specified, \fBzzuf\fR simply fuzzes the standard input, as
|
||||||
|
if the \fBcat\fR utility had been called:
|
||||||
|
.PP
|
||||||
|
\fB zzuf < /dev/zero\fR
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
\fB\-B\fR, \fB\-\-max\-bytes\fR=\fIn\fR
|
\fB\-B\fR, \fB\-\-max\-bytes\fR=\fIn\fR
|
||||||
@ -269,7 +274,7 @@ Linux-specific:
|
|||||||
\fBgetline\fR(), \fBgetdelim\fR(), \fB__getdelim\fR()
|
\fBgetline\fR(), \fBgetdelim\fR(), \fB__getdelim\fR()
|
||||||
.TP
|
.TP
|
||||||
BSD-specific:
|
BSD-specific:
|
||||||
\fBfgetln\fR(), \fB__srefill()\fR()
|
\fBfgetln\fR(), \fB__srefill\fR()
|
||||||
.TP
|
.TP
|
||||||
Signal handling:
|
Signal handling:
|
||||||
\fBsignal\fR(), \fBsigaction\fR()
|
\fBsignal\fR(), \fBsigaction\fR()
|
||||||
|
|||||||
@ -609,7 +609,7 @@ static void usage(void)
|
|||||||
printf("Usage: zzuf [-cdinqS] [-r ratio] [-s seed | -s start:stop]\n");
|
printf("Usage: zzuf [-cdinqS] [-r ratio] [-s seed | -s start:stop]\n");
|
||||||
printf(" [-F forks] [-C crashes] [-B bytes] [-T seconds]\n");
|
printf(" [-F forks] [-C crashes] [-B bytes] [-T seconds]\n");
|
||||||
printf(" [-P protect] [-R refuse]\n");
|
printf(" [-P protect] [-R refuse]\n");
|
||||||
printf(" [-I include] [-E exclude] COMMAND [ARGS]...\n");
|
printf(" [-I include] [-E exclude] [PROGRAM [ARGS]...]\n");
|
||||||
# ifdef HAVE_GETOPT_LONG
|
# ifdef HAVE_GETOPT_LONG
|
||||||
printf(" zzuf -h | --help\n");
|
printf(" zzuf -h | --help\n");
|
||||||
printf(" zzuf -v | --version\n");
|
printf(" zzuf -v | --version\n");
|
||||||
|
|||||||
@ -86,13 +86,14 @@ for r in 0.0 0.00001 0.001 0.1 10.0; do
|
|||||||
echo "*** file $file, ratio $r ***"
|
echo "*** file $file, ratio $r ***"
|
||||||
OK=1
|
OK=1
|
||||||
MD5=""
|
MD5=""
|
||||||
|
check "$ZZOPTS" "< $file" "zzuf"
|
||||||
check "$ZZOPTS" "$FDCAT $file" "fdcat"
|
check "$ZZOPTS" "$FDCAT $file" "fdcat"
|
||||||
check "$ZZOPTS" "$STREAMCAT $file" "streamcat"
|
check "$ZZOPTS" "$STREAMCAT $file" "streamcat"
|
||||||
if [ "$STATIC_CAT" = "" ]; then
|
if [ "$STATIC_CAT" = "" ]; then
|
||||||
check "$ZZOPTS" "cat $file" "cat"
|
check "$ZZOPTS" "cat $file" "cat"
|
||||||
check "$ZZOPTS" "-i cat < $file" "|cat"
|
check "$ZZOPTS" "-i cat < $file" "|cat"
|
||||||
fi
|
fi
|
||||||
if [ "$STATIC_CAT" = "" ]; then
|
if [ "$STATIC_DD" = "" ]; then
|
||||||
check "$ZZOPTS" "dd bs=65536 if=$file" "dd(bs=65536)"
|
check "$ZZOPTS" "dd bs=65536 if=$file" "dd(bs=65536)"
|
||||||
check "$ZZOPTS" "dd bs=1111 if=$file" "dd(bs=1111)"
|
check "$ZZOPTS" "dd bs=1111 if=$file" "dd(bs=1111)"
|
||||||
check "$ZZOPTS" "dd bs=1024 if=$file" "dd(bs=1024)"
|
check "$ZZOPTS" "dd bs=1024 if=$file" "dd(bs=1024)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user