From 327ebe24c51608997611d4f3dae3d9b76b0c4e9e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 8 Jan 2007 17:54:16 +0000 Subject: [PATCH] * Changed --md5 to only compute the standard output. --- doc/zzuf.1 | 4 ++-- src/zzuf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/zzuf.1 b/doc/zzuf.1 index 64fe34e..ef73e31 100644 --- a/doc/zzuf.1 +++ b/doc/zzuf.1 @@ -95,8 +95,8 @@ Multiple \fB\-I\fR flags can be specified, in which case files matching any one of the regular expressions will be fuzzed. See also the \fB\-c\fR flag. .TP \fB\-M\fR, \fB\-\-md5\fR -Instead of displaying the program's output, just print the MD5 digest of that -output. +Instead of displaying the program's standard output, just print the MD5 digest +of that output. The standard error channel is left untouched. .TP \fB\-n\fR, \fB\-\-network\fR Fuzz the application's network input. By default \fBzzuf\fR only fuzzes files. diff --git a/src/zzuf.c b/src/zzuf.c index 107fb12..eb2fa57 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -592,7 +592,7 @@ static void read_children(void) if(j != 0) child_list[i].bytes += ret; - if(md5 && j > 0) + if(md5 && j == 2) _zz_md5_add(child_list[i].ctx, buf, ret); else if(!quiet || j == 0) write((j < 2) ? STDERR_FILENO : STDOUT_FILENO, buf, ret);