projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert memset calls to OPENSSL_cleanse
[openssl.git]
/
crypto
/
mem.c
diff --git
a/crypto/mem.c
b/crypto/mem.c
index 6be14ab54ae2a6214a0bb6694822faac36f9c71a..02aa43a7ef52bbd3cd1525312c874c60c4ef4e40 100644
(file)
--- a/
crypto/mem.c
+++ b/
crypto/mem.c
@@
-148,7
+148,7
@@
void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
/* Can't shrink the buffer since memcpy below copies |old_len| bytes. */
if (num < old_len) {
-
memset((char*)str + num, 0
, old_len - num);
+
OPENSSL_cleanse((char*)str + num
, old_len - num);
return str;
}