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

This reverts commit 6428d9b8cf, reversing
changes made to 35ff192db1.
pull/299/head
Nikhil Parasaram 7 years ago
parent 6428d9b8cf
commit 8a3a74da10
  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/ether_send.sol.o.text
  5. 2
      tests/testdata/outputs_expected/metacoin.sol.o.json
  6. 2
      tests/testdata/outputs_expected/metacoin.sol.o.text
  7. 2
      tests/testdata/outputs_expected/overflow.sol.json
  8. 2
      tests/testdata/outputs_expected/overflow.sol.o.json
  9. 2
      tests/testdata/outputs_expected/overflow.sol.o.text
  10. 2
      tests/testdata/outputs_expected/overflow.sol.text
  11. 2
      tests/testdata/outputs_expected/underflow.sol.json
  12. 2
      tests/testdata/outputs_expected/underflow.sol.o.json
  13. 2
      tests/testdata/outputs_expected/underflow.sol.o.text
  14. 2
      tests/testdata/outputs_expected/underflow.sol.text

@ -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",

@ -8,7 +8,7 @@ In the function `withdrawfunds()` a non-zero amount of Ether is sent to msg.send
There is a check on storage index 1. This storage slot can be written to by calling the function `crowdfunding()`.
--------------------
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Unknown
Function name: invest()

@ -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",

@ -1,4 +1,4 @@
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Unknown
Function name: sendToken(address,uint256)

@ -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",

@ -16,7 +16,7 @@ A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0.
--------------------
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Unknown
Function name: sendeth(address,uint256)

@ -12,7 +12,7 @@ balances[msg.sender] -= _value
--------------------
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Over
Function name: sendeth(address,uint256)

@ -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",

@ -16,7 +16,7 @@ A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0.
--------------------
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Unknown
Function name: sendeth(address,uint256)

@ -12,7 +12,7 @@ balances[msg.sender] -= _value
--------------------
==== Integer Overflow ====
==== Integer Overflow ====
Type: Warning
Contract: Under
Function name: sendeth(address,uint256)

Loading…
Cancel
Save