Initialize 't' in ge25519_scalarmult_base_niels()

OSS-Fuzz's version of memorysanitizer can't tell that this value is
not going to be used unsafely.
This commit is contained in:
Nick Mathewson 2018-09-11 10:35:18 -04:00
parent b87a95289b
commit e5601f14ed

View File

@ -336,6 +336,7 @@ ge25519_scalarmult_base_niels(ge25519 *r, const uint8_t basepoint_table[256][96]
signed char b[64];
uint32_t i;
ge25519_niels t;
memset(&t, 0, sizeof(t));
contract256_window4_modm(b, s);
@ -361,4 +362,3 @@ ge25519_scalarmult_base_niels(ge25519 *r, const uint8_t basepoint_table[256][96]
ge25519_nielsadd2(r, &t);
}
}