mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6343 from ethereum/smt_fix_deref_null
[SMTChecker] Fix nullptr deref
This commit is contained in:
commit
939a178193
@ -791,7 +791,7 @@ void SMTChecker::endVisit(Literal const& _literal)
|
||||
|
||||
void SMTChecker::endVisit(Return const& _return)
|
||||
{
|
||||
if (knownExpr(*_return.expression()))
|
||||
if (_return.expression() && knownExpr(*_return.expression()))
|
||||
{
|
||||
auto returnParams = m_functionPath.back()->returnParameters();
|
||||
if (returnParams.size() > 1)
|
||||
|
Loading…
Reference in New Issue
Block a user