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
2e875d5d
Commit
2e875d5d
authored
Jan 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Validate complex array format string.
Verify that the format string being passed into the complex array functions is a complex array one.
parent
fdc130f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+35
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
2e875d5d
...
...
@@ -2098,6 +2098,13 @@ unsigned char * WINAPI NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"(%p,%p,%p)
\n
"
,
pStubMsg
,
pMemory
,
pFormat
);
if
(
pFormat
[
0
]
!=
RPC_FC_BOGUS_ARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
NULL
;
}
def
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
pFormat
+=
4
;
...
...
@@ -2139,6 +2146,13 @@ unsigned char * WINAPI NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"(%p,%p,%p,%d)
\n
"
,
pStubMsg
,
ppMemory
,
pFormat
,
fMustAlloc
);
if
(
pFormat
[
0
]
!=
RPC_FC_BOGUS_ARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
NULL
;
}
pFormat
+=
4
;
pFormat
=
ReadConformance
(
pStubMsg
,
pFormat
);
...
...
@@ -2180,6 +2194,13 @@ void WINAPI NdrComplexArrayBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"(%p,%p,%p)
\n
"
,
pStubMsg
,
pMemory
,
pFormat
);
if
(
pFormat
[
0
]
!=
RPC_FC_BOGUS_ARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
;
}
def
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
pFormat
+=
4
;
...
...
@@ -2207,6 +2228,13 @@ unsigned long WINAPI NdrComplexArrayMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
DWORD
size
=
0
;
FIXME
(
"(%p,%p): stub
\n
"
,
pStubMsg
,
pFormat
);
if
(
pFormat
[
0
]
!=
RPC_FC_BOGUS_ARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
0
;
}
pFormat
+=
4
;
pFormat
=
ReadConformance
(
pStubMsg
,
pFormat
);
...
...
@@ -2229,6 +2257,13 @@ void WINAPI NdrComplexArrayFree(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"(%p,%p,%p)
\n
"
,
pStubMsg
,
pMemory
,
pFormat
);
if
(
pFormat
[
0
]
!=
RPC_FC_BOGUS_ARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
;
}
def
=
*
(
const
WORD
*
)
&
pFormat
[
2
];
pFormat
+=
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