Skip to contentSkip to conversation

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

PATCH New Krzysztof Halasa 1 participant 1 message Jun 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix a panic in crypto hash calculations due to uninitialized variable.

common/digest.c +1 -1
index a327395..c2c431c 100644
@@ -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);
 
Signature · 6 lines
Krzysztof Halasa

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox