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
f7bcc26c
Commit
f7bcc26c
authored
Aug 13, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Avoid a memory allocation when decoding the subject key identifier extension.
parent
d49c9d59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
cert.c
dlls/crypt32/cert.c
+5
-6
No files found.
dlls/crypt32/cert.c
View file @
f7bcc26c
...
...
@@ -250,19 +250,18 @@ static BOOL WINAPI CertContext_GetProperty(void *context, DWORD dwPropId,
if
(
ext
)
{
CRYPT_DATA_BLOB
*
value
;
CRYPT_DATA_BLOB
value
;
DWORD
size
;
ret
=
CryptDecodeObjectEx
(
X509_ASN_ENCODING
,
szOID_SUBJECT_KEY_IDENTIFIER
,
ext
->
Value
.
pbData
,
ext
->
Value
.
cbData
,
CRYPT_DECODE_
ALLOC
_FLAG
,
NULL
,
&
value
,
ext
->
Value
.
cbData
,
CRYPT_DECODE_
NOCOPY
_FLAG
,
NULL
,
&
value
,
&
size
);
if
(
ret
)
{
ret
=
CertContext_CopyParam
(
pvData
,
pcbData
,
value
->
pbData
,
value
->
cbData
);
CertContext_SetProperty
(
context
,
dwPropId
,
0
,
value
);
LocalFree
(
value
);
ret
=
CertContext_CopyParam
(
pvData
,
pcbData
,
value
.
pbData
,
value
.
cbData
);
CertContext_SetProperty
(
context
,
dwPropId
,
0
,
&
value
);
}
}
else
...
...
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