diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-06-17 21:58:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-17 22:13:24 +0200 |
commit | 131e604073f89e6c1dd54be88b94b7befd881f2e (patch) | |
tree | d382dd311ba08be6bfe8e9cd49cb0614d9ac9d7a /l10ntools/Executable_localize.mk | |
parent | bb1e59d596ffa29d40b4538e18a08e5e91d469a9 (diff) |
cppuhelper: fix use-after-free race in OWeakConnectionPoint
OWeakObject::m_pWeakConnectionPoint is returned from
OWeakObject::queryAdapter(), and stored in
OWeakRefListener::m_xWeakConnectionPoint.
This is cleared in OWeakRefListener::dispose(), called from
OWeakConnectionPoint::dispose(), called from
OWeakObject::disposeWeakConnectionPoint(), but it can happen that
another thread is in WeakReferenceHelper::get() and has copied
m_xWeakConnectionPoint onto the stack before the OWeakObject is
released and deleted, then calls OWeakConnectionPoint::queryAdapted()
after it is released, accessing the dead m_pObject.
Change-Id: I7782e6fb7e07f5a48cf7064115217376714ba8e8
Diffstat (limited to 'l10ntools/Executable_localize.mk')
0 files changed, 0 insertions, 0 deletions