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
5cc4a891
Commit
5cc4a891
authored
Nov 10, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Nov 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix a heap corruption bug by resizing the src string before adding to it.
parent
d78ea3cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
files.c
dlls/msi/files.c
+5
-0
No files found.
dlls/msi/files.c
View file @
5cc4a891
...
...
@@ -469,8 +469,13 @@ static UINT download_remote_cabinet(MSIPACKAGE *package, struct media_info *mi)
*
(
ptr
+
1
)
=
'\0'
;
ptr
=
strrchrW
(
mi
->
source
,
'\\'
);
src
=
msi_realloc
(
src
,
(
lstrlenW
(
src
)
+
lstrlenW
(
ptr
))
*
sizeof
(
WCHAR
));
if
(
!
src
)
return
ERROR_OUTOFMEMORY
;
lstrcatW
(
src
,
ptr
+
1
);
temppath
[
0
]
=
'\0'
;
cab
=
msi_download_file
(
src
,
temppath
);
lstrcpyW
(
mi
->
source
,
cab
);
...
...
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