Juan Lang : rsaenh: Ensure a PKCS1 data block has at least minimum length.
Alexandre Julliard
julliard at winehq.org
Fri Nov 2 15:52:01 CDT 2012
Module: wine
Branch: master
Commit: 373e472db99bda0ec1e9656b3629a3836241b86d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=373e472db99bda0ec1e9656b3629a3836241b86d
Author: Juan Lang <juan.lang at gmail.com>
Date: Wed Feb 1 10:19:48 2012 -0800
rsaenh: Ensure a PKCS1 data block has at least minimum length.
---
dlls/rsaenh/rsaenh.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 9d38793..a428cc7 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -1697,6 +1697,11 @@ static BOOL unpad_data(CONST BYTE *abData, DWORD dwDataLen, BYTE *abBuffer, DWOR
{
DWORD i;
+ if (dwDataLen < 3)
+ {
+ SetLastError(NTE_BAD_DATA);
+ return FALSE;
+ }
for (i=2; i<dwDataLen; i++)
if (!abData[i])
break;
More information about the wine-cvs
mailing list