LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kbuild-wrong-memset.patch of Package kbuild (Project home:bmwiedemann:reproducible:test)

Index: kbuild-0.1.9998svn2543/src/lib/md5.c
===================================================================
--- kbuild-0.1.9998svn2543.orig/src/lib/md5.c
+++ kbuild-0.1.9998svn2543/src/lib/md5.c
@@ -144,7 +144,7 @@ void MD5Final(unsigned char digest[16],
     MD5Transform(ctx->buf, (uint32 *) ctx->in);
     byteReverse((unsigned char *) ctx->buf, 4);
     memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));        /* In case it's sensitive */
+    memset(ctx, 0, sizeof(struct MD5Context));        /* In case it's sensitive */
 }