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
88e28d97
Commit
88e28d97
authored
May 12, 2019
by
Józef Kucia
Committed by
Alexandre Julliard
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid debugstr buffer overflow.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
df05902b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
parser.c
dlls/setupapi/parser.c
+2
-7
No files found.
dlls/setupapi/parser.c
View file @
88e28d97
...
...
@@ -1853,13 +1853,8 @@ BOOL WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer,
}
buffer
[
i
-
index
]
=
value
;
}
if
(
TRACE_ON
(
setupapi
))
{
TRACE
(
"%p/%p/%d/%d index %d returning"
,
context
->
Inf
,
context
->
CurrentInf
,
context
->
Section
,
context
->
Line
,
index
);
for
(
i
=
index
;
i
<
line
->
nb_fields
;
i
++
)
TRACE
(
" %02x"
,
buffer
[
i
-
index
]
);
TRACE
(
"
\n
"
);
}
TRACE
(
"%p/%p/%d/%d index %d
\n
"
,
context
->
Inf
,
context
->
CurrentInf
,
context
->
Section
,
context
->
Line
,
index
);
return
TRUE
;
}
...
...
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