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
1b6dfafc
Commit
1b6dfafc
authored
Oct 17, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp60: Fixed overflow in basic_string_char_find_cstr_substr function.
parent
8de45a3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
string.c
dlls/msvcp60/string.c
+4
-0
No files found.
dlls/msvcp60/string.c
View file @
1b6dfafc
...
@@ -826,6 +826,8 @@ MSVCP_size_t __thiscall basic_string_char_find_cstr_substr(
...
@@ -826,6 +826,8 @@ MSVCP_size_t __thiscall basic_string_char_find_cstr_substr(
if
(
len
==
0
&&
pos
<=
this
->
size
)
if
(
len
==
0
&&
pos
<=
this
->
size
)
return
pos
;
return
pos
;
if
(
pos
>=
this
->
size
||
len
>
this
->
size
)
return
basic_string_char_npos
;
end
=
this
->
ptr
+
this
->
size
-
len
+
1
;
end
=
this
->
ptr
+
this
->
size
-
len
+
1
;
for
(
p
=
this
->
ptr
+
pos
;
p
<
end
;
p
++
)
{
for
(
p
=
this
->
ptr
+
pos
;
p
<
end
;
p
++
)
{
...
@@ -2531,6 +2533,8 @@ MSVCP_size_t __thiscall basic_string_wchar_find_cstr_substr(
...
@@ -2531,6 +2533,8 @@ MSVCP_size_t __thiscall basic_string_wchar_find_cstr_substr(
if
(
len
==
0
&&
pos
<=
this
->
size
)
if
(
len
==
0
&&
pos
<=
this
->
size
)
return
pos
;
return
pos
;
if
(
pos
>=
this
->
size
||
len
>
this
->
size
)
return
basic_string_wchar_npos
;
end
=
this
->
ptr
+
this
->
size
-
len
+
1
;
end
=
this
->
ptr
+
this
->
size
-
len
+
1
;
for
(
p
=
this
->
ptr
+
pos
;
p
<
end
;
p
++
)
{
for
(
p
=
this
->
ptr
+
pos
;
p
<
end
;
p
++
)
{
...
...
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