[PATCH] Fix a panic in crypto hash calculations due to uninitialized variable.

Krzysztof Halasa khc at pm.waw.pl
Thu Jun 7 09:04:07 EDT 2012


Signed-off-by: Krzysztof Hałasa <khc at pm.waw.pl>

diff --git a/common/digest.c b/common/digest.c
index a327395..c2c431c 100644
--- a/common/digest.c
+++ b/common/digest.c
@@ -86,7 +86,7 @@ int digest_file_window(struct digest *d, char *filename,
 	ulong len = 0;
 	int fd, now, ret = 0;
 	unsigned char *buf;
-	int flags;
+	int flags = 0;
 
 	d->init(d);
 

-- 
Krzysztof Halasa



More information about the barebox mailing list