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
cbf9d1b0
Commit
cbf9d1b0
authored
Jun 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add checks for the number of methods being larger than what we support.
parent
066060a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
cproxy.c
dlls/rpcrt4/cproxy.c
+5
-0
cstub.c
dlls/rpcrt4/cstub.c
+10
-0
No files found.
dlls/rpcrt4/cproxy.c
View file @
cbf9d1b0
...
...
@@ -133,6 +133,11 @@ static BOOL fill_stubless_table( IUnknownVtbl *vtbl, DWORD num )
const
void
**
entry
=
(
const
void
**
)(
vtbl
+
1
);
DWORD
i
,
j
;
if
(
num
-
3
>
BLOCK_SIZE
*
MAX_BLOCKS
)
{
FIXME
(
"%u methods not supported
\n
"
,
num
);
return
FALSE
;
}
for
(
i
=
0
;
i
<
(
num
-
3
+
BLOCK_SIZE
-
1
)
/
BLOCK_SIZE
;
i
++
)
{
const
struct
thunk
*
block
=
method_blocks
[
i
];
...
...
dlls/rpcrt4/cstub.c
View file @
cbf9d1b0
...
...
@@ -201,6 +201,11 @@ static BOOL fill_delegated_stub_table(IUnknownVtbl *vtbl, DWORD num)
const
void
**
entry
=
(
const
void
**
)(
vtbl
+
1
);
DWORD
i
,
j
;
if
(
num
-
3
>
BLOCK_SIZE
*
MAX_BLOCKS
)
{
FIXME
(
"%u methods not supported
\n
"
,
num
);
return
FALSE
;
}
vtbl
->
QueryInterface
=
delegating_QueryInterface
;
vtbl
->
AddRef
=
delegating_AddRef
;
vtbl
->
Release
=
delegating_Release
;
...
...
@@ -218,6 +223,11 @@ BOOL fill_delegated_proxy_table(IUnknownVtbl *vtbl, DWORD num)
const
void
**
entry
=
(
const
void
**
)(
vtbl
+
1
);
DWORD
i
,
j
;
if
(
num
-
3
>
BLOCK_SIZE
*
MAX_BLOCKS
)
{
FIXME
(
"%u methods not supported
\n
"
,
num
);
return
FALSE
;
}
vtbl
->
QueryInterface
=
IUnknown_QueryInterface_Proxy
;
vtbl
->
AddRef
=
IUnknown_AddRef_Proxy
;
vtbl
->
Release
=
IUnknown_Release_Proxy
;
...
...
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