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
bb0b4673
Commit
bb0b4673
authored
Feb 03, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Avoid a null pointer dereference in MsiGetFileVersionW (clang).
parent
bca0fd6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
msi.c
dlls/msi/msi.c
+3
-3
No files found.
dlls/msi/msi.c
View file @
bb0b4673
...
...
@@ -3201,18 +3201,18 @@ UINT WINAPI MsiGetFileVersionW( LPCWSTR path, LPWSTR verbuf, LPDWORD verlen,
return
ERROR_INVALID_PARAMETER
;
ret
=
get_file_version
(
path
,
verbuf
,
verlen
,
langbuf
,
langlen
);
if
(
ret
==
ERROR_RESOURCE_DATA_NOT_FOUND
)
if
(
ret
==
ERROR_RESOURCE_DATA_NOT_FOUND
&&
verlen
)
{
int
len
;
WCHAR
*
version
=
msi_font_version_from_file
(
path
);
if
(
!
version
)
return
ERROR_FILE_INVALID
;
len
=
strlenW
(
version
);
if
(
*
verlen
>
len
)
if
(
len
>=
*
verlen
)
ret
=
ERROR_MORE_DATA
;
else
if
(
verbuf
)
{
strcpyW
(
verbuf
,
version
);
ret
=
ERROR_SUCCESS
;
}
else
ret
=
ERROR_MORE_DATA
;
*
verlen
=
len
;
msi_free
(
version
);
}
...
...
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