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
45a12690
Commit
45a12690
authored
Jan 31, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fixed NULL ptr deref in QueryServiceConfig2A (Coverity).
parent
0aa5a836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
service.c
dlls/advapi32/service.c
+5
-3
No files found.
dlls/advapi32/service.c
View file @
45a12690
...
...
@@ -1365,9 +1365,10 @@ BOOL WINAPI QueryServiceConfig2A(SC_HANDLE hService, DWORD dwLevel, LPBYTE buffe
switch
(
dwLevel
)
{
case
SERVICE_CONFIG_DESCRIPTION
:
{
LPSERVICE_DESCRIPTIONA
configA
=
(
LPSERVICE_DESCRIPTIONA
)
buffer
;
if
(
buffer
&&
bufferW
)
{
LPSERVICE_DESCRIPTIONA
configA
=
(
LPSERVICE_DESCRIPTIONA
)
buffer
;
LPSERVICE_DESCRIPTIONW
configW
=
(
LPSERVICE_DESCRIPTIONW
)
bufferW
;
if
(
configW
->
lpDescription
)
{
if
(
configW
->
lpDescription
&&
(
size
>
sizeof
(
SERVICE_DESCRIPTIONA
))
)
{
DWORD
sz
;
configA
->
lpDescription
=
(
LPSTR
)(
configA
+
1
);
sz
=
WideCharToMultiByte
(
CP_ACP
,
0
,
configW
->
lpDescription
,
-
1
,
...
...
@@ -1380,10 +1381,11 @@ BOOL WINAPI QueryServiceConfig2A(SC_HANDLE hService, DWORD dwLevel, LPBYTE buffe
}
else
configA
->
lpDescription
=
NULL
;
}
break
;
break
;
default:
FIXME
(
"conversation W->A not implemented for level %d
\n
"
,
dwLevel
);
ret
=
FALSE
;
break
;
}
cleanup:
...
...
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