commit | 254f9b9c01d9aee3c475843ea0357b5b90de9e8c | [log] [tgz] |
---|---|---|
author | Juan Lang <juan.lang@gmail.com> | Mon Sep 08 12:30:01 2008 -0700 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Sep 09 11:46:14 2008 +0200 |
tree | a7839fa84120956d3e6207b511a429e710ed5652 | |
parent | 3dbdb311287978e00fbf04b7ebcec7b6a4cefbb2 [diff] |
crypt32: Check length of sequence before checking tag.
diff --git a/dlls/crypt32/decode.c b/dlls/crypt32/decode.c index eb782d3..0d46fe3 100644 --- a/dlls/crypt32/decode.c +++ b/dlls/crypt32/decode.c
@@ -475,6 +475,11 @@ cbEncoded, dwFlags, pDecodePara, pvStructInfo, *pcbStructInfo, startingPointer); + if (!cbEncoded) + { + SetLastError(CRYPT_E_ASN1_EOD); + return FALSE; + } if (pbEncoded[0] == ASN_SEQUENCE) { DWORD dataLen;