mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix "Value stored to 'a' is never read" in SHA1Transform()
Using same fix as used in android [1]. [1]: android.googlesource.com/platform/dalvik/+/android-4.4.2_r2/libdex/sha1.cpp#193
This commit is contained in:
parent
bcefdbc67a
commit
b84fee24ab
2
sha1.c
2
sha1.c
@ -198,8 +198,6 @@ static void SHA1Transform(uint32_t state[5], const unsigned char buffer[64]) {
|
|||||||
state[2] += c;
|
state[2] += c;
|
||||||
state[3] += d;
|
state[3] += d;
|
||||||
state[4] += e;
|
state[4] += e;
|
||||||
/* Wipe variables */
|
|
||||||
a = b = c = d = e = 0;
|
|
||||||
#ifdef SHA1HANDSOFF
|
#ifdef SHA1HANDSOFF
|
||||||
memset(block, '\0', sizeof(block));
|
memset(block, '\0', sizeof(block));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user