Commit 04eb1e6a authored by Alexandre Julliard's avatar Alexandre Julliard

wintrust: Fix a buffer overflow.

parent 3b140ccb
......@@ -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)
{
......
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