Skip to content
Snippets Groups Projects
Commit 3fa9c0cd authored by Steve Fink's avatar Steve Fink
Browse files

Bug 1400442 - Propagate safety through RefPtr, r=bhackett

--HG--
extra : rebase_source : 187dda47209195746d88a00733d9b806da2c4f14
parent 9f483c42
No related branches found
No related tags found
No related merge requests found
......@@ -1153,6 +1153,14 @@ function isSafeVariable(entry, variable)
}
}
// RefPtr::operator->() and operator* transmit the safety of the
// RefPtr to the return value.
if (isDirectCall(edge, /RefPtr<.*?>::operator(->|\*)\(\)/) &&
isEdgeSafeArgument(entry, edge.PEdgeCallInstance.Exp))
{
return true;
}
// Placement-new returns a pointer that is as safe as the pointer
// passed to it. Exp[0] is the size, Exp[1] is the pointer/address.
// Note that the invocation of the constructor is a separate call,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment