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
d34b3bf6
Commit
d34b3bf6
authored
Oct 20, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Don't assume string pointer has been set if length is 0.
parent
7cf611ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
encode.c
dlls/crypt32/encode.c
+6
-2
No files found.
dlls/crypt32/encode.c
View file @
d34b3bf6
...
...
@@ -913,8 +913,12 @@ static BOOL CRYPT_AsnEncodeBMPString(const CERT_NAME_VALUE *value,
LPCWSTR
str
=
(
LPCWSTR
)
value
->
Value
.
pbData
;
DWORD
bytesNeeded
,
lenBytes
,
strLen
;
strLen
=
value
->
Value
.
cbData
?
value
->
Value
.
cbData
/
sizeof
(
WCHAR
)
:
lstrlenW
(
str
);
if
(
value
->
Value
.
cbData
)
strLen
=
value
->
Value
.
cbData
/
sizeof
(
WCHAR
);
else
if
(
value
->
Value
.
pbData
)
strLen
=
lstrlenW
(
str
);
else
strLen
=
0
;
CRYPT_EncodeLen
(
strLen
*
2
,
NULL
,
&
lenBytes
);
bytesNeeded
=
1
+
lenBytes
+
strLen
*
2
;
if
(
!
pbEncoded
)
...
...
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