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
deb27422
Commit
deb27422
authored
May 18, 2014
by
Daniel Beitler
Committed by
Alexandre Julliard
May 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Prevent call to memset with a null pointer in get_tablecolumns function.
parent
0fe183c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
table.c
dlls/msi/table.c
+2
-2
No files found.
dlls/msi/table.c
View file @
deb27422
...
...
@@ -671,7 +671,7 @@ static UINT get_tablecolumns( MSIDATABASE *db, LPCWSTR szTableName, MSICOLUMNINF
/* Note: _Columns table doesn't have non-persistent data */
/* if maxcount is non-zero, assume it's exactly right for this table */
memset
(
colinfo
,
0
,
maxcount
*
sizeof
(
*
colinfo
)
);
if
(
colinfo
)
memset
(
colinfo
,
0
,
maxcount
*
sizeof
(
*
colinfo
)
);
count
=
table
->
row_count
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -684,7 +684,7 @@ static UINT get_tablecolumns( MSIDATABASE *db, LPCWSTR szTableName, MSICOLUMNINF
/* check the column number is in range */
if
(
col
<
1
||
col
>
maxcount
)
{
ERR
(
"column %d out of range
\n
"
,
col
);
ERR
(
"column %d out of range
(maxcount: %d)
\n
"
,
col
,
maxcount
);
continue
;
}
/* check if this column was already set */
...
...
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