wrap all functions in back ticks #108
pull/127/head
Bernhard Mueller 7 years ago committed by GitHub
commit 509ba09936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 2
      mythril/support/truffle.py
  3. 8
      static/sample_report.md
  4. 2
      tests/cmd_line_test.py
  5. 4
      tests/testdata/outputs_expected/ether_send.sol.json
  6. 2
      tests/testdata/outputs_expected/ether_send.sol.markdown
  7. 4
      tests/testdata/outputs_expected/ether_send.sol.text
  8. 2
      tests/testdata/outputs_expected/metacoin.sol.json
  9. 2
      tests/testdata/outputs_expected/metacoin.sol.markdown
  10. 2
      tests/testdata/outputs_expected/metacoin.sol.text
  11. 2
      tests/testdata/outputs_expected/multi_contracts.sol.json
  12. 2
      tests/testdata/outputs_expected/multi_contracts.sol.markdown
  13. 2
      tests/testdata/outputs_expected/multi_contracts.sol.text
  14. 6
      tests/testdata/outputs_expected/overflow.sol.json
  15. 6
      tests/testdata/outputs_expected/overflow.sol.markdown
  16. 6
      tests/testdata/outputs_expected/overflow.sol.text
  17. 8
      tests/testdata/outputs_expected/rubixi.sol.json
  18. 8
      tests/testdata/outputs_expected/rubixi.sol.markdown
  19. 8
      tests/testdata/outputs_expected/rubixi.sol.text
  20. 6
      tests/testdata/outputs_expected/underflow.sol.json
  21. 6
      tests/testdata/outputs_expected/underflow.sol.markdown
  22. 6
      tests/testdata/outputs_expected/underflow.sol.text
  23. 8
      tests/testdata/outputs_expected/weak_random.sol.json
  24. 8
      tests/testdata/outputs_expected/weak_random.sol.markdown
  25. 8
      tests/testdata/outputs_expected/weak_random.sol.text

@ -58,7 +58,7 @@ Type: Warning
Contract: Crowdfunding Contract: Crowdfunding
Function name: withdrawfunds() Function name: withdrawfunds()
PC address: 816 PC address: 816
In the function 'withdrawfunds()' a non-zero amount of Ether is sent to msg.sender. In the function `withdrawfunds()` a non-zero amount of Ether is sent to msg.sender.
There is a check on storage index 7. This storage slot can be written to by calling the function 'crowdfunding()'. There is a check on storage index 7. This storage slot can be written to by calling the function 'crowdfunding()'.
-------------------- --------------------

@ -103,6 +103,6 @@ def analyze_truffle_project(args):
else: else:
if (args.outform == 'text'): if (args.outform == 'text'):
print("Analysis result for " + name + ":\n" + report.as_text()) print("\n\n# Analysis result for " + name + ":\n\n" + report.as_text())
elif (args.outform == 'markdown'): elif (args.outform == 'markdown'):
print("\n\n# Analysis result for " + name + "\n\n" + report.as_markdown()) print("\n\n# Analysis result for " + name + "\n\n" + report.as_markdown())

@ -6,7 +6,7 @@
- PC address: 816 - PC address: 816
### Description ### Description
In the function 'withdrawfunds()' a non-zero amount of Ether is sent to msg.sender. In the function `withdrawfunds()` a non-zero amount of Ether is sent to msg.sender.
Call value is balance_at_1461501637330902918203684832716283019655932542975 & address. Call value is balance_at_1461501637330902918203684832716283019655932542975 & address.
There is a check on storage index 7. This storage slot can be written to by calling the function 'crowdfunding()'. There is a check on storage index 7. This storage slot can be written to by calling the function 'crowdfunding()'.
@ -67,7 +67,7 @@ msg.sender.call.value(_amount)()
- PC address: 649 - PC address: 649
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The SUB instruction at address 649 may result in a value < 0. The SUB instruction at address 649 may result in a value < 0.
In *underflow.sol:* In *underflow.sol:*
@ -82,7 +82,7 @@ balances[msg.sender] -= _value
- PC address: 567 - PC address: 567
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The SUB instruction at address 567 may result in a value < 0. The SUB instruction at address 567 may result in a value < 0.
In *underflow.sol:* In *underflow.sol:*
@ -97,7 +97,7 @@ balances[msg.sender] - _value
- PC address: 1285 - PC address: 1285
### Description ### Description
In the function '_function_0xe9874106' the following predictable state variables are used to determine Ether recipient: In the function `'_function_0xe9874106'` the following predictable state variables are used to determine Ether recipient:
- block.coinbase - block.coinbase

@ -26,7 +26,7 @@ class TruffleTestCase(BaseTestCase):
def test_analysis_truffle_project(self): def test_analysis_truffle_project(self):
truffle_project_root = str(TESTS_DIR / "truffle_project") truffle_project_root = str(TESTS_DIR / "truffle_project")
command = "cd {}; truffle compile; python3 {} --truffle".format(truffle_project_root, MYTH) command = "cd {}; truffle compile; python3 {} --truffle".format(truffle_project_root, MYTH)
self.assertIn("In the function 'withdrawfunds()' a non-zero amount of Ether is sent to msg.sender.", output_of(command)) self.assertIn("In the function `'withdrawfunds()'` a non-zero amount of Ether is sent to msg.sender.", output_of(command))
class InfuraTestCase(BaseTestCase): class InfuraTestCase(BaseTestCase):

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Ether send", "title": "Ether send",
"description": "In the function 'withdrawfunds()' a non-zero amount of Ether is sent to msg.sender.\n\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'crowdfunding()'.", "description": "In the function `'withdrawfunds()'` a non-zero amount of Ether is sent to msg.sender.\n\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'crowdfunding()'.",
"function": "withdrawfunds()", "function": "withdrawfunds()",
"type": "Warning", "type": "Warning",
"address": 816, "address": 816,
@ -15,7 +15,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function invest().\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `invest()`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "invest()", "function": "invest()",
"type": "Warning", "type": "Warning",
"address": 483, "address": 483,

@ -22,7 +22,7 @@ msg.sender.transfer(this.balance)
- PC address: 483 - PC address: 483
### Description ### Description
A possible integer overflow exists in the function invest(). A possible integer overflow exists in the function `invest()`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/ether_send.sol:24* In *<TESTDATA>/inputs/ether_send.sol:24*

@ -3,7 +3,7 @@ Type: Warning
Contract: Crowdfunding Contract: Crowdfunding
Function name: withdrawfunds() Function name: withdrawfunds()
PC address: 816 PC address: 816
In the function 'withdrawfunds()' a non-zero amount of Ether is sent to msg.sender. In the function `'withdrawfunds()'` a non-zero amount of Ether is sent to msg.sender.
There is a check on storage index 1. This storage slot can be written to by calling the function 'crowdfunding()'. There is a check on storage index 1. This storage slot can be written to by calling the function 'crowdfunding()'.
-------------------- --------------------
@ -18,7 +18,7 @@ Type: Warning
Contract: Crowdfunding Contract: Crowdfunding
Function name: invest() Function name: invest()
PC address: 483 PC address: 483
A possible integer overflow exists in the function invest(). A possible integer overflow exists in the function `invest()`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/ether_send.sol:24 In file: <TESTDATA>/inputs/ether_send.sol:24

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

@ -6,7 +6,7 @@
- PC address: 498 - PC address: 498
### Description ### Description
A possible integer overflow exists in the function sendToken(address,uint256). A possible integer overflow exists in the function `sendToken(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/metacoin.sol:12* In *<TESTDATA>/inputs/metacoin.sol:12*

@ -3,7 +3,7 @@ Type: Warning
Contract: metaCoin Contract: metaCoin
Function name: sendToken(address,uint256) Function name: sendToken(address,uint256)
PC address: 498 PC address: 498
A possible integer overflow exists in the function sendToken(address,uint256). A possible integer overflow exists in the function `sendToken(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/metacoin.sol:12 In file: <TESTDATA>/inputs/metacoin.sol:12

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Ether send", "title": "Ether send",
"description": "In the function '_function_0x8a4068dd' a non-zero amount of Ether is sent to msg.sender.\nIt seems that this function can be called without restrictions.", "description": "In the function `'_function_0x8a4068dd'` a non-zero amount of Ether is sent to msg.sender.\nIt seems that this function can be called without restrictions.",
"function": "_function_0x8a4068dd", "function": "_function_0x8a4068dd",
"type": "Warning", "type": "Warning",
"address": 142, "address": 142,

@ -6,7 +6,7 @@
- PC address: 142 - PC address: 142
### Description ### Description
In the function '_function_0x8a4068dd' a non-zero amount of Ether is sent to msg.sender. In the function `'_function_0x8a4068dd'` a non-zero amount of Ether is sent to msg.sender.
It seems that this function can be called without restrictions. It seems that this function can be called without restrictions.
In *<TESTDATA>/inputs/multi_contracts.sol:14* In *<TESTDATA>/inputs/multi_contracts.sol:14*

@ -3,7 +3,7 @@ Type: Warning
Contract: Transfer2 Contract: Transfer2
Function name: _function_0x8a4068dd Function name: _function_0x8a4068dd
PC address: 142 PC address: 142
In the function '_function_0x8a4068dd' a non-zero amount of Ether is sent to msg.sender. In the function `'_function_0x8a4068dd'` a non-zero amount of Ether is sent to msg.sender.
It seems that this function can be called without restrictions. It seems that this function can be called without restrictions.
-------------------- --------------------
In file: <TESTDATA>/inputs/multi_contracts.sol:14 In file: <TESTDATA>/inputs/multi_contracts.sol:14

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Integer Underflow", "title": "Integer Underflow",
"description": "A possible integer underflow exists in the function sendeth(address,uint256).\nThe subtraction may result in a value < 0.", "description": "A possible integer underflow exists in the function `sendeth(address,uint256)`.\nThe subtraction may result in a value < 0.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 649, "address": 649,
@ -15,7 +15,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function sendeth(address,uint256).\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 725, "address": 725,
@ -26,7 +26,7 @@
}, },
{ {
"title": "Integer Underflow", "title": "Integer Underflow",
"description": "A possible integer underflow exists in the function sendeth(address,uint256).\nThe subtraction may result in a value < 0.", "description": "A possible integer underflow exists in the function `sendeth(address,uint256)`.\nThe subtraction may result in a value < 0.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 567, "address": 567,

@ -6,7 +6,7 @@
- PC address: 649 - PC address: 649
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
In *<TESTDATA>/inputs/overflow.sol:12* In *<TESTDATA>/inputs/overflow.sol:12*
@ -21,7 +21,7 @@ balances[msg.sender] -= _value
- PC address: 725 - PC address: 725
### Description ### Description
A possible integer overflow exists in the function sendeth(address,uint256). A possible integer overflow exists in the function `sendeth(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/overflow.sol:13* In *<TESTDATA>/inputs/overflow.sol:13*
@ -36,7 +36,7 @@ balances[_to] += _value
- PC address: 567 - PC address: 567
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
In *<TESTDATA>/inputs/overflow.sol:11* In *<TESTDATA>/inputs/overflow.sol:11*

@ -3,7 +3,7 @@ Type: Warning
Contract: Over Contract: Over
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 649 PC address: 649
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
-------------------- --------------------
In file: <TESTDATA>/inputs/overflow.sol:12 In file: <TESTDATA>/inputs/overflow.sol:12
@ -17,7 +17,7 @@ Type: Warning
Contract: Over Contract: Over
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 725 PC address: 725
A possible integer overflow exists in the function sendeth(address,uint256). A possible integer overflow exists in the function `sendeth(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/overflow.sol:13 In file: <TESTDATA>/inputs/overflow.sol:13
@ -31,7 +31,7 @@ Type: Warning
Contract: Over Contract: Over
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 567 PC address: 567
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
-------------------- --------------------
In file: <TESTDATA>/inputs/overflow.sol:11 In file: <TESTDATA>/inputs/overflow.sol:11

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Ether send", "title": "Ether send",
"description": "In the function '_function_0x4229616d' a non-zero amount of Ether is sent to an address taken from storage slot 5.\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\n\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.", "description": "In the function `'_function_0x4229616d'` a non-zero amount of Ether is sent to an address taken from storage slot 5.\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\n\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.",
"function": "_function_0x4229616d", "function": "_function_0x4229616d",
"type": "Warning", "type": "Warning",
"address": 1599, "address": 1599,
@ -15,7 +15,7 @@
}, },
{ {
"title": "Ether send", "title": "Ether send",
"description": "In the function '_function_0x686f2c90' a non-zero amount of Ether is sent to an address taken from storage slot 5.\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\n\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.", "description": "In the function `'_function_0x686f2c90'` a non-zero amount of Ether is sent to an address taken from storage slot 5.\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\n\nThere is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.",
"function": "_function_0x686f2c90", "function": "_function_0x686f2c90",
"type": "Warning", "type": "Warning",
"address": 1940, "address": 1940,
@ -48,7 +48,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function _function_0xfae14192.\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `_function_0xfae14192`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "_function_0xfae14192", "function": "_function_0xfae14192",
"type": "Warning", "type": "Warning",
"address": 1223, "address": 1223,
@ -59,7 +59,7 @@
}, },
{ {
"title": "Integer Underflow", "title": "Integer Underflow",
"description": "A possible integer underflow exists in the function _function_0xd11f13df.\nThe subtraction may result in a value < 0.", "description": "A possible integer underflow exists in the function `_function_0xd11f13df`.\nThe subtraction may result in a value < 0.",
"function": "_function_0xd11f13df", "function": "_function_0xd11f13df",
"type": "Warning", "type": "Warning",
"address": 2743, "address": 2743,

@ -6,7 +6,7 @@
- PC address: 1599 - PC address: 1599
### Description ### Description
In the function '_function_0x4229616d' a non-zero amount of Ether is sent to an address taken from storage slot 5. In the function `'_function_0x4229616d'` a non-zero amount of Ether is sent to an address taken from storage slot 5.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
@ -24,7 +24,7 @@ creator.send(feesToCollect)
- PC address: 1940 - PC address: 1940
### Description ### Description
In the function '_function_0x686f2c90' a non-zero amount of Ether is sent to an address taken from storage slot 5. In the function `'_function_0x686f2c90'` a non-zero amount of Ether is sent to an address taken from storage slot 5.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
@ -70,7 +70,7 @@ participants[orderInPyramid]
- PC address: 1223 - PC address: 1223
### Description ### Description
A possible integer overflow exists in the function _function_0xfae14192. A possible integer overflow exists in the function `_function_0xfae14192`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/rubixi.sol:37* In *<TESTDATA>/inputs/rubixi.sol:37*
@ -85,7 +85,7 @@ collectedFees += msg.value
- PC address: 2743 - PC address: 2743
### Description ### Description
A possible integer underflow exists in the function _function_0xd11f13df. A possible integer underflow exists in the function `_function_0xd11f13df`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
In *<TESTDATA>/inputs/rubixi.sol:143* In *<TESTDATA>/inputs/rubixi.sol:143*

@ -3,7 +3,7 @@ Type: Warning
Contract: Rubixi Contract: Rubixi
Function name: _function_0x4229616d Function name: _function_0x4229616d
PC address: 1599 PC address: 1599
In the function '_function_0x4229616d' a non-zero amount of Ether is sent to an address taken from storage slot 5. In the function `'_function_0x4229616d'` a non-zero amount of Ether is sent to an address taken from storage slot 5.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
@ -20,7 +20,7 @@ Type: Warning
Contract: Rubixi Contract: Rubixi
Function name: _function_0x686f2c90 Function name: _function_0x686f2c90
PC address: 1940 PC address: 1940
In the function '_function_0x686f2c90' a non-zero amount of Ether is sent to an address taken from storage slot 5. In the function `'_function_0x686f2c90'` a non-zero amount of Ether is sent to an address taken from storage slot 5.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'. There is a check on storage index 5. This storage slot can be written to by calling the function '_function_0x67f809e9'.
@ -63,7 +63,7 @@ Type: Warning
Contract: Rubixi Contract: Rubixi
Function name: _function_0xfae14192 Function name: _function_0xfae14192
PC address: 1223 PC address: 1223
A possible integer overflow exists in the function _function_0xfae14192. A possible integer overflow exists in the function `_function_0xfae14192`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/rubixi.sol:37 In file: <TESTDATA>/inputs/rubixi.sol:37
@ -77,7 +77,7 @@ Type: Warning
Contract: Rubixi Contract: Rubixi
Function name: _function_0xd11f13df Function name: _function_0xd11f13df
PC address: 2743 PC address: 2743
A possible integer underflow exists in the function _function_0xd11f13df. A possible integer underflow exists in the function `_function_0xd11f13df`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
-------------------- --------------------
In file: <TESTDATA>/inputs/rubixi.sol:143 In file: <TESTDATA>/inputs/rubixi.sol:143

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Integer Underflow", "title": "Integer Underflow",
"description": "A possible integer underflow exists in the function sendeth(address,uint256).\nThe subtraction may result in a value < 0.", "description": "A possible integer underflow exists in the function `sendeth(address,uint256)`.\nThe subtraction may result in a value < 0.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 649, "address": 649,
@ -15,7 +15,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function sendeth(address,uint256).\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `sendeth(address,uint256)`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 725, "address": 725,
@ -26,7 +26,7 @@
}, },
{ {
"title": "Integer Underflow", "title": "Integer Underflow",
"description": "A possible integer underflow exists in the function sendeth(address,uint256).\nThe subtraction may result in a value < 0.", "description": "A possible integer underflow exists in the function `sendeth(address,uint256)`.\nThe subtraction may result in a value < 0.",
"function": "sendeth(address,uint256)", "function": "sendeth(address,uint256)",
"type": "Warning", "type": "Warning",
"address": 567, "address": 567,

@ -6,7 +6,7 @@
- PC address: 649 - PC address: 649
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
In *<TESTDATA>/inputs/underflow.sol:12* In *<TESTDATA>/inputs/underflow.sol:12*
@ -21,7 +21,7 @@ balances[msg.sender] -= _value
- PC address: 725 - PC address: 725
### Description ### Description
A possible integer overflow exists in the function sendeth(address,uint256). A possible integer overflow exists in the function `sendeth(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/underflow.sol:13* In *<TESTDATA>/inputs/underflow.sol:13*
@ -36,7 +36,7 @@ balances[_to] += _value
- PC address: 567 - PC address: 567
### Description ### Description
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
In *<TESTDATA>/inputs/underflow.sol:11* In *<TESTDATA>/inputs/underflow.sol:11*

@ -3,7 +3,7 @@ Type: Warning
Contract: Under Contract: Under
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 649 PC address: 649
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
-------------------- --------------------
In file: <TESTDATA>/inputs/underflow.sol:12 In file: <TESTDATA>/inputs/underflow.sol:12
@ -17,7 +17,7 @@ Type: Warning
Contract: Under Contract: Under
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 725 PC address: 725
A possible integer overflow exists in the function sendeth(address,uint256). A possible integer overflow exists in the function `sendeth(address,uint256)`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/underflow.sol:13 In file: <TESTDATA>/inputs/underflow.sol:13
@ -31,7 +31,7 @@ Type: Warning
Contract: Under Contract: Under
Function name: sendeth(address,uint256) Function name: sendeth(address,uint256)
PC address: 567 PC address: 567
A possible integer underflow exists in the function sendeth(address,uint256). A possible integer underflow exists in the function `sendeth(address,uint256)`.
The subtraction may result in a value < 0. The subtraction may result in a value < 0.
-------------------- --------------------
In file: <TESTDATA>/inputs/underflow.sol:11 In file: <TESTDATA>/inputs/underflow.sol:11

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Dependence on predictable environment variable", "title": "Dependence on predictable environment variable",
"description": "In the function '_function_0xe9874106' the following predictable state variables are used to determine Ether recipient:\n- block.coinbase\n", "description": "In the function `'_function_0xe9874106'` the following predictable state variables are used to determine Ether recipient:\n- block.coinbase\n",
"function": "_function_0xe9874106", "function": "_function_0xe9874106",
"type": "Warning", "type": "Warning",
"address": 1285, "address": 1285,
@ -15,7 +15,7 @@
}, },
{ {
"title": "Ether send", "title": "Ether send",
"description": "In the function '_function_0xe9874106' a non-zero amount of Ether is sent to an address taken from storage slot 0.\nThere is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'.\n\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.", "description": "In the function `'_function_0xe9874106'` a non-zero amount of Ether is sent to an address taken from storage slot 0.\nThere is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'.\n\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.\nThere is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.",
"function": "_function_0xe9874106", "function": "_function_0xe9874106",
"type": "Warning", "type": "Warning",
"address": 1285, "address": 1285,
@ -48,7 +48,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function _function_0xe9874106.\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `_function_0xe9874106`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "_function_0xe9874106", "function": "_function_0xe9874106",
"type": "Warning", "type": "Warning",
"address": 1216, "address": 1216,
@ -59,7 +59,7 @@
}, },
{ {
"title": "Integer Overflow ", "title": "Integer Overflow ",
"description": "A possible integer overflow exists in the function _function_0xe9874106.\nThe addition may result in a value higher than the maximum representable integer.", "description": "A possible integer overflow exists in the function `_function_0xe9874106`.\nThe addition may result in a value higher than the maximum representable integer.",
"function": "_function_0xe9874106", "function": "_function_0xe9874106",
"type": "Warning", "type": "Warning",
"address": 262, "address": 262,

@ -6,7 +6,7 @@
- PC address: 1285 - PC address: 1285
### Description ### Description
In the function '_function_0xe9874106' the following predictable state variables are used to determine Ether recipient: In the function `'_function_0xe9874106'` the following predictable state variables are used to determine Ether recipient:
- block.coinbase - block.coinbase
@ -22,7 +22,7 @@ winningAddress.transfer(prize)
- PC address: 1285 - PC address: 1285
### Description ### Description
In the function '_function_0xe9874106' a non-zero amount of Ether is sent to an address taken from storage slot 0. In the function `'_function_0xe9874106'` a non-zero amount of Ether is sent to an address taken from storage slot 0.
There is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'. There is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'.
There is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'. There is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.
@ -68,7 +68,7 @@ prize / totalTickets
- PC address: 1216 - PC address: 1216
### Description ### Description
A possible integer overflow exists in the function _function_0xe9874106. A possible integer overflow exists in the function `_function_0xe9874106`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/weak_random.sol:45* In *<TESTDATA>/inputs/weak_random.sol:45*
@ -83,7 +83,7 @@ gameId++
- PC address: 262 - PC address: 262
### Description ### Description
A possible integer overflow exists in the function _function_0xe9874106. A possible integer overflow exists in the function `_function_0xe9874106`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
In *<TESTDATA>/inputs/weak_random.sol:22* In *<TESTDATA>/inputs/weak_random.sol:22*

@ -3,7 +3,7 @@ Type: Warning
Contract: WeakRandom Contract: WeakRandom
Function name: _function_0xe9874106 Function name: _function_0xe9874106
PC address: 1285 PC address: 1285
In the function '_function_0xe9874106' the following predictable state variables are used to determine Ether recipient: In the function `'_function_0xe9874106'` the following predictable state variables are used to determine Ether recipient:
- block.coinbase - block.coinbase
-------------------- --------------------
@ -18,7 +18,7 @@ Type: Warning
Contract: WeakRandom Contract: WeakRandom
Function name: _function_0xe9874106 Function name: _function_0xe9874106
PC address: 1285 PC address: 1285
In the function '_function_0xe9874106' a non-zero amount of Ether is sent to an address taken from storage slot 0. In the function `'_function_0xe9874106'` a non-zero amount of Ether is sent to an address taken from storage slot 0.
There is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'. There is a check on storage index 0. This storage slot can be written to by calling the function 'fallback'.
There is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'. There is a check on storage index 1. This storage slot can be written to by calling the function 'fallback'.
@ -61,7 +61,7 @@ Type: Warning
Contract: WeakRandom Contract: WeakRandom
Function name: _function_0xe9874106 Function name: _function_0xe9874106
PC address: 1216 PC address: 1216
A possible integer overflow exists in the function _function_0xe9874106. A possible integer overflow exists in the function `_function_0xe9874106`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/weak_random.sol:45 In file: <TESTDATA>/inputs/weak_random.sol:45
@ -75,7 +75,7 @@ Type: Warning
Contract: WeakRandom Contract: WeakRandom
Function name: _function_0xe9874106 Function name: _function_0xe9874106
PC address: 262 PC address: 262
A possible integer overflow exists in the function _function_0xe9874106. A possible integer overflow exists in the function `_function_0xe9874106`.
The addition may result in a value higher than the maximum representable integer. The addition may result in a value higher than the maximum representable integer.
-------------------- --------------------
In file: <TESTDATA>/inputs/weak_random.sol:22 In file: <TESTDATA>/inputs/weak_random.sol:22

Loading…
Cancel
Save