- 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:
Thomas Faber 2014-08-12 07:52:29 +00:00
parent 42f34d3788
commit e70cc781b3

View file

@ -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) {