Skip to content

Conversation

@BigGan
Copy link

@BigGan BigGan commented Jul 20, 2020

In the function TranslateCallStatement (Sources/SolToBoogie/ProcedureTranslator.cs), the parameter outParams may be null. However, This code BoogieIdentifierExpr tmpVarExpr = outParams[0]; will call directly outParams[0] without judging whether the outParams is null.

Test Case( Test.sol ):

pragma solidity >=0.4.20;
contract Test {
function BugTest() public {
msg.sender.call.value(123)("");
}
}

In the function TranslateCallStatement (Sources/SolToBoogie/ProcedureTranslator.cs), the parameter outParams may be null. However, This code BoogieIdentifierExpr tmpVarExpr = outParams[0]; will call directly outParams[0] without judging whether the outParams is null.

Test Case( Test.sol ):

pragma solidity >=0.4.20;
contract Test {
  function BugTest() public  {
      msg.sender.call.value(123)("");
  }
}
@ghost
Copy link

ghost commented Jul 20, 2020

CLA assistant check
All CLA requirements met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant