NULL check on XMALLOC return value with devcrypto_rsa.c

This commit is contained in:
JacobBarthelmeh
2026-05-11 16:42:18 -06:00
parent d592b834c5
commit c19dec7449
+1 -1
View File
@@ -175,7 +175,7 @@ static int _PrivateOperation(const byte* in, word32 inlen, byte* out,
p = (byte*)XMALLOC(pSz, NULL, DYNAMIC_TYPE_TMP_BUFFER);
q = (byte*)XMALLOC(qSz, NULL, DYNAMIC_TYPE_TMP_BUFFER);
n = (byte*)XMALLOC(dSz, NULL, DYNAMIC_TYPE_TMP_BUFFER);
if (d == NULL || p == NULL || q == NULL) {
if (d == NULL || p == NULL || q == NULL || n == NULL) {
ret = MEMORY_E;
}