wintrust: Fix a buffer overflow.

This commit is contained in:
Alexandre Julliard 2008-11-17 17:08:40 +01:00
parent 3b140ccb0e
commit 04eb1e6a63
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ static BOOL WINAPI WINTRUST_enumUsages(PCCRYPT_OID_INFO pInfo, void *pvArg)
for (cUsages = 0, ptr = *usages; *ptr; ptr++, cUsages++)
;
*usages = WINTRUST_ReAlloc((CRYPT_OID_INFO *)*usages,
(cUsages + 1) * sizeof(PCCRYPT_OID_INFO));
(cUsages + 2) * sizeof(PCCRYPT_OID_INFO));
}
if (*usages)
{