forked from pool/kbuild
Accepting request 98312 from home:namtrac:bugfix
- Fix wrong size parameter in memset call OBS-URL: https://build.opensuse.org/request/show/98312 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/kbuild?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
92083b8251
commit
536498a867
13
kbuild-wrong-memset.patch
Normal file
13
kbuild-wrong-memset.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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 */
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user