mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix dangling reference produced by temporary passed to TestFileParser going out of scope
- This fixes the `stack-use-after-scope` error reported by asan.
This commit is contained in:
parent
752483b92f
commit
d85cc6c06a
@ -44,8 +44,10 @@ namespace
|
||||
|
||||
vector<FunctionCall> parse(string const& _source)
|
||||
{
|
||||
static std::map<std::string, Builtin> const builtins = {};
|
||||
|
||||
istringstream stream{_source, ios_base::out};
|
||||
return TestFileParser{stream, {}}.parseFunctionCalls(0);
|
||||
return TestFileParser{stream, builtins}.parseFunctionCalls(0);
|
||||
}
|
||||
|
||||
void testFunctionCall(
|
||||
|
Loading…
Reference in New Issue
Block a user