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
58571710
Commit
58571710
authored
Mar 12, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jun 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix integer overflow in DPA_Search.
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
parent
561a5b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dpa.c
dlls/comctl32/dpa.c
+1
-1
No files found.
dlls/comctl32/dpa.c
View file @
58571710
...
@@ -859,7 +859,7 @@ INT WINAPI DPA_Search (HDPA hdpa, LPVOID pFind, INT nStart,
...
@@ -859,7 +859,7 @@ INT WINAPI DPA_Search (HDPA hdpa, LPVOID pFind, INT nStart,
r
=
hdpa
->
nItemCount
-
1
;
r
=
hdpa
->
nItemCount
-
1
;
lpPtr
=
hdpa
->
ptrs
;
lpPtr
=
hdpa
->
ptrs
;
while
(
r
>=
l
)
{
while
(
r
>=
l
)
{
x
=
(
l
+
r
)
/
2
;
x
=
l
+
(
r
-
l
)
/
2
;
n
=
(
pfnCompare
)(
pFind
,
lpPtr
[
x
],
lParam
);
n
=
(
pfnCompare
)(
pFind
,
lpPtr
[
x
],
lParam
);
if
(
n
==
0
)
if
(
n
==
0
)
return
x
;
return
x
;
...
...
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