mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
crypt32: Check a pointer before dereferencing it (Coverity).
This commit is contained in:
parent
961193bc5d
commit
c0752da99f
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue