chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5d300
)
md5: correct size arg to memset().
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 10 Dec 2011 16:13:18 +0000
(16:13 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 10 Dec 2011 21:45:50 +0000
(21:45 +0000)
On realistic targets the effect of the error was that the MD5 context
wasn't fully cleared.
Signed-off-by: Richard Kettlewell <rjk@terraraq.org.uk>
(cherry picked from commit
dfa6ab137e7565bd1afc03b045fff4aa737a7c9e
)
md5.c
patch
|
blob
|
history
diff --git
a/md5.c
b/md5.c
index 71fb4f1272c9ad95cdf7a2e3c33b454597396bfe..8c57e25a65b5de95ac1a4d6dfbe652c252215ac4 100644
(file)
--- a/
md5.c
+++ b/
md5.c
@@
-129,7
+129,7
@@
MD5Final(md5byte digest[16], struct MD5Context *ctx)
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof
(ctx)
); /* In case it's sensitive */
+ memset(ctx, 0, sizeof
*ctx
); /* In case it's sensitive */
}
#ifndef ASM_MD5