mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 07:05:12 +00:00
[RPCRT4]
- Correctly check for in-buffer memory in PointerFree. Fixes invalid free e.g. when calling StartService without service arguments svn path=/trunk/; revision=63871
This commit is contained in:
parent
42f34d3788
commit
e70cc781b3
|
@ -1120,7 +1120,7 @@ static void PointerFree(PMIDL_STUB_MESSAGE pStubMsg,
|
|||
* BufferStart and BufferEnd won't be reset when allocating memory for
|
||||
* sending the response. we don't have to check for the new buffer here as
|
||||
* it won't be used a type memory, only for buffer memory */
|
||||
if (Pointer >= pStubMsg->BufferStart && Pointer < pStubMsg->BufferEnd)
|
||||
if (Pointer >= pStubMsg->BufferStart && Pointer <= pStubMsg->BufferEnd)
|
||||
goto notfree;
|
||||
|
||||
if (attr & RPC_FC_P_ONSTACK) {
|
||||
|
|
Loading…
Reference in a new issue