BlackDuck scan reports this as a Use After Free Vulnerability #14652
Unanswered
kumaran-id-git
asked this question in
Q&A
Replies: 1 comment
-
Interesting find. Here's the specific line: Invoking the destructor won't actually release the object. It's a little strange, but not necessarily wrong. But... worth looking at! @vmoroz give this a look? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/microsoft/react-native-windows/blame/cc126e4e42ed2dea020655264af0cfb5b1d6ea12/vnext/Mso/src/future/futureImpl.cpp
Static Scan by BlackDuck reports this as a Use After Free Vulnerability
// "this->Mso::Futures::FutureCallback::~FutureCallback()" manually destructs "this".
this->~FutureCallback();
// Passing freed pointer "this" as an argument to "GetFutureImpl".
GetFutureImpl(this)->Release();
}
Beta Was this translation helpful? Give feedback.
All reactions