Commit c0752da9 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Check a pointer before dereferencing it (Coverity).

parent 961193bc
...@@ -561,7 +561,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc, ...@@ -561,7 +561,8 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
itemSizes = itemSizes =
CryptMemAlloc( CryptMemAlloc(
cItems * sizeof(struct AsnArrayItemSize)); cItems * sizeof(struct AsnArrayItemSize));
memcpy(itemSizes, &itemSize, sizeof(itemSize)); if (itemSizes)
memcpy(itemSizes, &itemSize, sizeof(itemSize));
} }
if (itemSizes) if (itemSizes)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment