mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
fixed uninitialized memory read in GxsTrans msg Id
This commit is contained in:
parent
6d76624e91
commit
0868b64436
3 changed files with 5 additions and 2 deletions
|
@ -599,7 +599,7 @@ bool AuthSSLimpl::SignData(const void *data, const uint32_t len, std::string &si
|
|||
|
||||
EVP_MD_CTX *mdctx = EVP_MD_CTX_create();
|
||||
unsigned int signlen = EVP_PKEY_size(mOwnPrivateKey);
|
||||
unsigned char signature[signlen];
|
||||
unsigned char signature[signlen] = { 0 };
|
||||
|
||||
if (0 == EVP_SignInit(mdctx, EVP_sha1()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue