[PATCH] fixed wrong allocation size
Marcus Meissner
marcus at jet.franken.de
Tue Jul 24 14:16:01 CDT 2007
Hi,
setOf.rgValue is 0 in the allocation, it should
use desc->cItems.
Ciao, Marcus
---
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_DEREncodeItemsA
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
--
1.4.3.4
More information about the wine-patches
mailing list