Changeset: 0a5dccb0dad6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0a5dccb0dad6
Modified Files:
common/utils/mcrypt.c
Branch: default
Log Message:
mcrypt: memset array to make valgrind happy
We read garbage data with snprintf, but we kill that off afterwards, so
no big issue, however, valgrind obviously warns about that.
diffs (13 lines):
diff --git a/common/utils/mcrypt.c b/common/utils/mcrypt.c
--- a/common/utils/mcrypt.c
+++ b/common/utils/mcrypt.c
@@ -285,6 +285,9 @@ mcrypt_hashPassword(
char ret[64 * 2 + 1];
int len;
+ /* make valgrind happy, prevent us from printing garbage afterwards */
+ memset(md, 0, 64);
+
if (strcmp(algo, "RIPEMD160") == 0) {
RIPEMD160_CTX c;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list