diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2013-04-17 09:26:51 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2013-04-17 09:26:51 +0200 |
commit | ca019260192e7b863dd426b0cd108cef13598168 (patch) | |
tree | 58b04249d14b884ae97151d31449cb73cedca6d8 /mysys | |
parent | 6868f3460d465208848e86e42c828b857186979e (diff) | |
download | mariadb-git-ca019260192e7b863dd426b0cd108cef13598168.tar.gz |
Bug#16626742 IN MY_MD5FINAL IN MYSYS/MD5.C, CTX IS NOT PROPERLY ZEROED AS INTENDED
Zero out the entire struct, rather than the first sizeof(void*) bytes.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/md5.c b/mysys/md5.c index 7179359d213..655befa546a 100644 --- a/mysys/md5.c +++ b/mysys/md5.c @@ -176,7 +176,7 @@ my_MD5Final (unsigned char digest[16], my_MD5Context *ctx) putu32(ctx->buf[1], digest + 4); putu32(ctx->buf[2], digest + 8); putu32(ctx->buf[3], digest + 12); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } #ifndef ASM_MD5 |