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
5cefdb68
Commit
5cefdb68
authored
Sep 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix potential buffer overruns in CertGetNameStringW.
parent
a83f94af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
str.c
dlls/crypt32/str.c
+4
-4
No files found.
dlls/crypt32/str.c
View file @
5cefdb68
...
...
@@ -1018,7 +1018,7 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
{
if
(
!
pszNameString
)
ret
=
strlenW
(
entry
->
pwszRfc822Name
)
+
1
;
else
else
if
(
cchNameString
)
{
ret
=
min
(
strlenW
(
entry
->
pwszRfc822Name
),
cchNameString
-
1
);
memcpy
(
pszNameString
,
entry
->
pwszRfc822Name
,
...
...
@@ -1103,7 +1103,7 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
{
if
(
!
pszNameString
)
ret
=
strlenW
(
entry
->
pwszRfc822Name
)
+
1
;
else
else
if
(
cchNameString
)
{
ret
=
min
(
strlenW
(
entry
->
pwszRfc822Name
),
cchNameString
-
1
);
...
...
@@ -1140,7 +1140,7 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
{
if
(
!
pszNameString
)
ret
=
strlenW
(
entry
->
pwszDNSName
)
+
1
;
else
else
if
(
cchNameString
)
{
ret
=
min
(
strlenW
(
entry
->
pwszDNSName
),
cchNameString
-
1
);
memcpy
(
pszNameString
,
entry
->
pwszDNSName
,
ret
*
sizeof
(
WCHAR
));
...
...
@@ -1164,7 +1164,7 @@ DWORD WINAPI CertGetNameStringW(PCCERT_CONTEXT pCertContext, DWORD dwType,
{
if
(
!
pszNameString
)
ret
=
strlenW
(
entry
->
pwszURL
)
+
1
;
else
else
if
(
cchNameString
)
{
ret
=
min
(
strlenW
(
entry
->
pwszURL
),
cchNameString
-
1
);
memcpy
(
pszNameString
,
entry
->
pwszURL
,
ret
*
sizeof
(
WCHAR
));
...
...
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