mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Fix for report of Use of memory after it is freed
. Force the dataIsAlloc
set to 0.
This commit is contained in:
@@ -3278,6 +3278,7 @@ static int RsaPrivateDecryptEx(const byte* in, word32 inLen, byte* out,
|
|||||||
XMEMCPY(key->data, in, inLen);
|
XMEMCPY(key->data, in, inLen);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
key->dataIsAlloc = 0;
|
||||||
key->data = out;
|
key->data = out;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user