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

This commit is contained in:
Juan Lang 2006-07-10 20:30:54 -07:00 committed by Alexandre Julliard
parent 961193bc5d
commit c0752da99f
1 changed files with 2 additions and 1 deletions

View File

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