mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
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…
x
Reference in New Issue
Block a user