Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
1437d7cc
Commit
1437d7cc
authored
Oct 15, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Explicitly pass pointers to blob arrays rather than relying on an…
crypt32: Explicitly pass pointers to blob arrays rather than relying on an invalid alignment assumption.
parent
3000bc20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
msg.c
dlls/crypt32/msg.c
+8
-12
No files found.
dlls/crypt32/msg.c
View file @
1437d7cc
...
...
@@ -742,19 +742,13 @@ static BOOL CRYPT_ConstructBlobArray(DWORD *outCBlobs,
return
ret
;
}
typedef
struct
_BlobArray
{
DWORD
cBlobs
;
PCRYPT_DATA_BLOB
blobs
;
}
BlobArray
;
static
void
CRYPT_FreeBlobArray
(
BlobArray
*
array
)
static
void
CRYPT_FreeBlobArray
(
DWORD
cBlobs
,
PCRYPT_DATA_BLOB
blobs
)
{
DWORD
i
;
for
(
i
=
0
;
i
<
array
->
cBlobs
;
i
++
)
CryptMemFree
(
array
->
blobs
[
i
].
pbData
);
CryptMemFree
(
array
->
blobs
);
for
(
i
=
0
;
i
<
cBlobs
;
i
++
)
CryptMemFree
(
blobs
[
i
].
pbData
);
CryptMemFree
(
blobs
);
}
static
BOOL
CRYPT_ConstructAttribute
(
CRYPT_ATTRIBUTE
*
out
,
...
...
@@ -1180,8 +1174,10 @@ static void CSignedEncodeMsg_Close(HCRYPTMSG hCryptMsg)
CryptMemFree
(
msg
->
innerOID
);
CryptMemFree
(
msg
->
data
.
pbData
);
CRYPT_FreeBlobArray
((
BlobArray
*
)
&
msg
->
msg_data
.
info
->
cCertEncoded
);
CRYPT_FreeBlobArray
((
BlobArray
*
)
&
msg
->
msg_data
.
info
->
cCrlEncoded
);
CRYPT_FreeBlobArray
(
msg
->
msg_data
.
info
->
cCertEncoded
,
msg
->
msg_data
.
info
->
rgCertEncoded
);
CRYPT_FreeBlobArray
(
msg
->
msg_data
.
info
->
cCrlEncoded
,
msg
->
msg_data
.
info
->
rgCrlEncoded
);
for
(
i
=
0
;
i
<
msg
->
msg_data
.
info
->
cSignerInfo
;
i
++
)
CSignerInfo_Free
(
&
msg
->
msg_data
.
info
->
rgSignerInfo
[
i
]);
CSignedMsgData_CloseHandles
(
&
msg
->
msg_data
);
...
...
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