forked from wolfSSL/wolfssl
Scan-build fix for possible case where r and s aren't initalized for wc_ecc_verify_hash.
This commit is contained in:
@@ -5178,7 +5178,9 @@ int wc_ecc_verify_hash(const byte* sig, word32 siglen, const byte* hash,
|
|||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
XMEMSET(r, 0, sizeof(mp_int));
|
||||||
|
XMEMSET(s, 0, sizeof(mp_int));
|
||||||
|
#endif /* WOLFSSL_ASYNC_CRYPT */
|
||||||
|
|
||||||
switch(key->state) {
|
switch(key->state) {
|
||||||
case ECC_STATE_NONE:
|
case ECC_STATE_NONE:
|
||||||
|
Reference in New Issue
Block a user