Fix for report of Use of memory after it is freed. Force the dataIsAlloc set to 0.

This commit is contained in:
David Garske
2022-04-21 13:31:09 -07:00
parent 8fb1bb8781
commit 293d7e1241

View File

@@ -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