Michael Karcher : crypt32: Fix integer overflow.
Alexandre Julliard
julliard at winehq.org
Mon May 26 13:12:40 CDT 2008
Module: wine
Branch: master
Commit: a6087662ba7b8af37488b5465695a59c5fb17d8b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6087662ba7b8af37488b5465695a59c5fb17d8b
Author: Michael Karcher <karcher at physik.fu-berlin.de>
Date: Sun May 25 14:32:22 2008 +0200
crypt32: Fix integer overflow.
---
dlls/crypt32/encode.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c
index 9071e5c..a274f44 100644
--- a/dlls/crypt32/encode.c
+++ b/dlls/crypt32/encode.c
@@ -2540,8 +2540,8 @@ static BOOL WINAPI CRYPT_AsnEncodeInteger(DWORD dwCertEncodingType,
__TRY
{
- DWORD significantBytes, lenBytes;
- BYTE padByte = 0, bytesNeeded;
+ DWORD significantBytes, lenBytes, bytesNeeded;
+ BYTE padByte = 0;
BOOL pad = FALSE;
const CRYPT_INTEGER_BLOB *blob =
(const CRYPT_INTEGER_BLOB *)pvStructInfo;
@@ -2629,8 +2629,7 @@ static BOOL WINAPI CRYPT_AsnEncodeUnsignedInteger(DWORD dwCertEncodingType,
__TRY
{
- DWORD significantBytes, lenBytes;
- BYTE bytesNeeded;
+ DWORD significantBytes, lenBytes, bytesNeeded;
BOOL pad = FALSE;
const CRYPT_INTEGER_BLOB *blob =
(const CRYPT_INTEGER_BLOB *)pvStructInfo;
More information about the wine-cvs
mailing list