Revert "Revert "Merge pull request #296 from norhh/branch/295""

This reverts commit 8a3a74da10.
pull/304/head
Dr. Sergey Pogodin 7 years ago
parent c61a561e42
commit a2998f5b50
  1. 2
      mythril/analysis/modules/integer.py
  2. 2
      tests/testdata/outputs_expected/ether_send.sol.json
  3. 2
      tests/testdata/outputs_expected/ether_send.sol.o.json
  4. 2
      tests/testdata/outputs_expected/metacoin.sol.o.json
  5. 2
      tests/testdata/outputs_expected/overflow.sol.json
  6. 2
      tests/testdata/outputs_expected/overflow.sol.o.json
  7. 2
      tests/testdata/outputs_expected/underflow.sol.json
  8. 2
      tests/testdata/outputs_expected/underflow.sol.o.json

@ -85,7 +85,7 @@ def _check_integer_overflow(statespace, state, node):
return issues
# Build issue
issue = Issue(node.contract_name, node.function_name, instruction['address'], "Integer Overflow ", "Warning")
issue = Issue(node.contract_name, node.function_name, instruction['address'], "Integer Overflow", "Warning")
issue.description = "A possible integer overflow exists in the function `{}`.\n" \
"The addition or multiplication may result in a value higher than the maximum representable integer.".format(

@ -14,7 +14,7 @@
"code": "msg.sender.transfer(this.balance)"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `invest()`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "invest()",
"type": "Warning",

@ -11,7 +11,7 @@
"debug": "<DEBUG-DATA>"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `invest()`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "invest()",
"type": "Warning",

@ -3,7 +3,7 @@
"error": null,
"issues": [
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `sendToken(address,uint256)`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "sendToken(address,uint256)",
"type": "Warning",

@ -14,7 +14,7 @@
"code": "balances[msg.sender] -= _value"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)",
"type": "Warning",

@ -11,7 +11,7 @@
"debug": "<DEBUG-DATA>"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)",
"type": "Warning",

@ -14,7 +14,7 @@
"code": "balances[msg.sender] -= _value"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)",
"type": "Warning",

@ -11,7 +11,7 @@
"debug": "<DEBUG-DATA>"
},
{
"title": "Integer Overflow ",
"title": "Integer Overflow",
"description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition or multiplication may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)",
"type": "Warning",

Loading…
Cancel
Save