• Kevin Puetz's avatar
    rpcrt4: Add a refcount owned by MIDL_STUB_MESSAGE. · a7be4256
    Kevin Puetz authored
    In cases where this could have been use-after-free, exceptions were
    caught/hidden by RpcTryFinally, but still lead to leaks since
    NdrProxyFreeBuffer wasn't able to call IRPCChannelBuffer::FreeBuffer.
    
    StdProxy_GetChannel() now AddRef() on its return value (used to set
    __proxy_frame::_StubMsg::pRpcChannelBuffer), and NdrProxyFreeBuffer()
    calls the corresponding Release() and clears the now-weak pointer.
    This makes the behavior of these function match the observed test
    results, and fixes the crash/leak when a proxy is released mid-Invoke.
    a7be4256
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...