Marcus Meissner : crypt32: Fixed wrong allocation size.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 25 07:44:10 CDT 2007
Module: wine
Branch: master
Commit: 60ef860f174e1e9f46daa3acffd3647279c51543
URL: http://source.winehq.org/git/wine.git/?a=commit;h=60ef860f174e1e9f46daa3acffd3647279c51543
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Tue Jul 24 21:16:01 2007 +0200
crypt32: Fixed wrong allocation size.
---
dlls/crypt32/encode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c
index 7d46521..7359ed8 100644
--- a/dlls/crypt32/encode.c
+++ b/dlls/crypt32/encode.c
@@ -1231,7 +1231,7 @@ static BOOL WINAPI CRYPT_DEREncodeItemsAsSet(DWORD dwCertEncodingType,
if (desc->cItems)
{
- setOf.rgValue = CryptMemAlloc(setOf.cValue * sizeof(CRYPT_DER_BLOB));
+ setOf.rgValue = CryptMemAlloc(desc->cItems * sizeof(CRYPT_DER_BLOB));
if (!setOf.rgValue)
ret = FALSE;
else
More information about the wine-cvs
mailing list