projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make update
[oweals/openssl.git]
/
crypto
/
mem_clr.c
diff --git
a/crypto/mem_clr.c
b/crypto/mem_clr.c
index e4b7f540b0bd12dd03608b52e8214332cb1a8b72..75cbfb374e3bd4e09af7e9dd0999a7e39a8b0c32 100644
(file)
--- a/
crypto/mem_clr.c
+++ b/
crypto/mem_clr.c
@@
-68,7
+68,7
@@
void OPENSSL_cleanse(void *ptr, size_t len)
while(loop--)
{
*(p++) = cleanse_ctr;
while(loop--)
{
*(p++) = cleanse_ctr;
- cleanse_ctr += (17 + (unsigned char)((
int
)p & 0xF));
+ cleanse_ctr += (17 + (unsigned char)((
unsigned long
)p & 0xF));
}
if(memchr(ptr, cleanse_ctr, len))
cleanse_ctr += 63;
}
if(memchr(ptr, cleanse_ctr, len))
cleanse_ctr += 63;