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
555cf382
Commit
555cf382
authored
Apr 20, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Prevent NULL pointer de-refs on "void *" types.
parent
d133ff9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
write_msft.c
tools/widl/write_msft.c
+7
-6
No files found.
tools/widl/write_msft.c
View file @
555cf382
...
@@ -783,16 +783,17 @@ static int encode_type(
...
@@ -783,16 +783,17 @@ static int encode_type(
case
VT_PTR
:
case
VT_PTR
:
{
{
int
next_vt
;
int
next_vt
;
while
((
next_vt
=
get_type_vt
(
type
->
ref
))
==
0
)
{
for
(
next_vt
=
0
;
type
->
ref
;
type
=
type
->
ref
)
{
if
(
type
->
ref
==
NULL
)
{
next_vt
=
get_type_vt
(
type
->
ref
);
next_vt
=
VT_VOID
;
if
(
next_vt
!=
0
)
break
;
break
;
}
type
=
type
->
ref
;
}
}
/* if no type found then it must be void */
if
(
next_vt
==
0
)
next_vt
=
VT_VOID
;
encode_type
(
typelib
,
next_vt
,
type
->
ref
,
&
target_type
,
NULL
,
NULL
,
&
child_size
);
encode_type
(
typelib
,
next_vt
,
type
->
ref
,
&
target_type
,
NULL
,
NULL
,
&
child_size
);
if
(
type
->
ref
->
type
==
RPC_FC_IP
)
{
if
(
type
->
ref
&&
(
type
->
ref
->
type
==
RPC_FC_IP
)
)
{
chat
(
"encode_type: skipping ptr
\n
"
);
chat
(
"encode_type: skipping ptr
\n
"
);
*
encoded_type
=
target_type
;
*
encoded_type
=
target_type
;
*
width
=
4
;
*
width
=
4
;
...
...
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