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
046f24a0
Commit
046f24a0
authored
Nov 20, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Raise an exception if a NULL ref-pointer is passed in to PointerMarshall…
rpcrt4: Raise an exception if a NULL ref-pointer is passed in to PointerMarshall or PointerBufferSize.
parent
ec8a27f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+8
-2
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
046f24a0
...
@@ -871,10 +871,11 @@ static void PointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
...
@@ -871,10 +871,11 @@ static void PointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
switch
(
type
)
{
switch
(
type
)
{
case
RPC_FC_RP
:
/* ref pointer (always non-null) */
case
RPC_FC_RP
:
/* ref pointer (always non-null) */
#if 0 /* this causes problems for InstallShield so is disabled - we need more tests */
if
(
!
Pointer
)
if
(
!
Pointer
)
{
ERR
(
"NULL ref pointer is not allowed
\n
"
);
RpcRaiseException
(
RPC_X_NULL_REF_POINTER
);
RpcRaiseException
(
RPC_X_NULL_REF_POINTER
);
#endif
}
pointer_needs_marshaling
=
1
;
pointer_needs_marshaling
=
1
;
break
;
break
;
case
RPC_FC_UP
:
/* unique pointer */
case
RPC_FC_UP
:
/* unique pointer */
...
@@ -1016,6 +1017,11 @@ static void PointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
...
@@ -1016,6 +1017,11 @@ static void PointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
switch
(
type
)
{
switch
(
type
)
{
case
RPC_FC_RP
:
/* ref pointer (always non-null) */
case
RPC_FC_RP
:
/* ref pointer (always non-null) */
if
(
!
Pointer
)
{
ERR
(
"NULL ref pointer is not allowed
\n
"
);
RpcRaiseException
(
RPC_X_NULL_REF_POINTER
);
}
break
;
break
;
case
RPC_FC_OP
:
case
RPC_FC_OP
:
case
RPC_FC_UP
:
case
RPC_FC_UP
:
...
...
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