Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b7d26dc9
Commit
b7d26dc9
authored
Sep 08, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Sep 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't crash when asked to verify a signature before the content has been finalized.
parent
f98eb4a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
msg.c
dlls/crypt32/msg.c
+7
-0
No files found.
dlls/crypt32/msg.c
View file @
b7d26dc9
...
...
@@ -2554,6 +2554,11 @@ static BOOL CDecodeSignedMsg_VerifySignature(CDecodeMsg *msg, PCERT_INFO info)
BOOL
ret
=
FALSE
;
DWORD
i
;
if
(
!
msg
->
u
.
signed_data
.
signerHandles
)
{
SetLastError
(
NTE_BAD_SIGNATURE
);
return
FALSE
;
}
for
(
i
=
0
;
!
ret
&&
i
<
msg
->
u
.
signed_data
.
info
->
cSignerInfo
;
i
++
)
{
PCMSG_CMS_SIGNER_INFO
signerInfo
=
...
...
@@ -2596,6 +2601,8 @@ static BOOL CDecodeSignedMsg_VerifySignatureEx(CDecodeMsg *msg,
SetLastError
(
ERROR_INVALID_PARAMETER
);
else
if
(
para
->
dwSignerIndex
>=
msg
->
u
.
signed_data
.
info
->
cSignerInfo
)
SetLastError
(
CRYPT_E_SIGNER_NOT_FOUND
);
else
if
(
!
msg
->
u
.
signed_data
.
signerHandles
)
SetLastError
(
NTE_BAD_SIGNATURE
);
else
{
switch
(
para
->
dwSignerType
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment