mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Fixed use of uninitialized value in wc_ecc_sig_to_rs.
This commit is contained in:
@ -7043,6 +7043,9 @@ int wc_ecc_sig_to_rs(const byte* sig, word32 sigLen, byte* r, word32* rLen,
|
||||
}
|
||||
#endif
|
||||
|
||||
(void)XMEMSET(&rtmp, 0, sizeof(mp_int));
|
||||
(void)XMEMSET(&stmp, 0, sizeof(mp_int));
|
||||
|
||||
err = DecodeECC_DSA_Sig(sig, sigLen, rtmp, stmp);
|
||||
|
||||
/* extract r */
|
||||
|
Reference in New Issue
Block a user