mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LLL: do not allow empty variable names
This commit is contained in:
parent
79ed529b3f
commit
581aace501
@ -173,6 +173,8 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
|
||||
|
||||
auto varAddress = [&](string const& n)
|
||||
{
|
||||
if (n.empty())
|
||||
error<InvalidName>("Empty variable name not allowed");
|
||||
auto it = _s.vars.find(n);
|
||||
if (it == _s.vars.end())
|
||||
error<InvalidName>(std::string("Symbol not found: ") + s);
|
||||
|
Loading…
Reference in New Issue
Block a user