Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d12728a8
Commit
d12728a8
authored
Mar 28, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Avoid zero size allocations (Valgrind).
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b95ebd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
table.c
dlls/msi/table.c
+5
-7
No files found.
dlls/msi/table.c
View file @
d12728a8
...
...
@@ -422,13 +422,11 @@ static UINT read_table_from_storage( MSIDATABASE *db, MSITABLE *t, IStorage *stg
goto
err
;
}
t
->
row_count
=
rawsize
/
row_size
;
t
->
data
=
msi_alloc_zero
(
t
->
row_count
*
sizeof
(
USHORT
*
)
);
if
(
!
t
->
data
)
goto
err
;
t
->
data_persistent
=
msi_alloc_zero
(
t
->
row_count
*
sizeof
(
BOOL
));
if
(
!
t
->
data_persistent
)
goto
err
;
if
((
t
->
row_count
=
rawsize
/
row_size
))
{
if
(
!
(
t
->
data
=
msi_alloc_zero
(
t
->
row_count
*
sizeof
(
USHORT
*
)
)))
goto
err
;
if
(
!
(
t
->
data_persistent
=
msi_alloc_zero
(
t
->
row_count
*
sizeof
(
BOOL
)
)))
goto
err
;
}
/* transpose all the data */
TRACE
(
"Transposing data from %d rows
\n
"
,
t
->
row_count
);
...
...
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