crypt32: Check a pointer before dereferencing it (Coverity).
This commit is contained in:
parent
961193bc5d
commit
c0752da99f
|
@ -561,7 +561,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
|
|||
itemSizes =
|
||||
CryptMemAlloc(
|
||||
cItems * sizeof(struct AsnArrayItemSize));
|
||||
memcpy(itemSizes, &itemSize, sizeof(itemSize));
|
||||
if (itemSizes)
|
||||
memcpy(itemSizes, &itemSize, sizeof(itemSize));
|
||||
}
|
||||
if (itemSizes)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue