You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Cast the input parameter to another type, or crash if the cast is invalid.template <typename T> T* VarTo(Var aValue)
{
AssertOrFailFast(VarIs<T>(aValue));
returnreinterpret_cast<T*>(aValue);
}
The text was updated successfully, but these errors were encountered:
Thanks for the report - the error will be at the call site of VarTo or earlier - the abort here is guarding against potentially undefined behaviour if we do an incorrect cast.
VarTo is getting invalid pointer when it is called from Js::JavascriptAsyncGeneratorFunction::EntryAsyncGeneratorFunctionImplementation, looks like pointer is for JS object for the prototype.
I think this is a bug, @rhuanjl what do you think?
PoC:
Backtrace:
The source code is
The text was updated successfully, but these errors were encountered: