fix typo adresses to addresses

pull/182/head
Jeffrey Tong 7 years ago
parent ff775c91e5
commit addfe13d4f
  1. 2
      mythril/analysis/modules/external_calls.py
  2. 4
      tests/testdata/outputs_expected/calls.sol.o.json
  3. 4
      tests/testdata/outputs_expected/calls.sol.o.markdown
  4. 4
      tests/testdata/outputs_expected/calls.sol.o.text
  5. 2
      tests/testdata/outputs_expected/kinds_of_calls.sol.o.json
  6. 2
      tests/testdata/outputs_expected/kinds_of_calls.sol.o.markdown
  7. 2
      tests/testdata/outputs_expected/kinds_of_calls.sol.o.text

@ -90,7 +90,7 @@ def execute(statespace):
if user_supplied: if user_supplied:
description += "Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state." description += "Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state."
issue = Issue(call.node.contract_name, call.node.function_name, address, "Message call to external contract", "Warning", description) issue = Issue(call.node.contract_name, call.node.function_name, address, "Message call to external contract", "Warning", description)

@ -12,7 +12,7 @@
}, },
{ {
"title": "Message call to external contract", "title": "Message call to external contract",
"description": "This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.", "description": "This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.",
"function": "_function_0xd24b08cc", "function": "_function_0xd24b08cc",
"type": "Warning", "type": "Warning",
"address": 779, "address": 779,
@ -36,7 +36,7 @@
}, },
{ {
"title": "Message call to external contract", "title": "Message call to external contract",
"description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.", "description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.",
"function": "_function_0xe1d10f79", "function": "_function_0xe1d10f79",
"type": "Warning", "type": "Warning",
"address": 912, "address": 912,

@ -20,7 +20,7 @@ This contract executes a message call to to another contract. Make sure that the
### Description ### Description
This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
## Message call to external contract ## Message call to external contract
@ -53,7 +53,7 @@ The contract account state is changed after an external call. Consider that the
### Description ### Description
This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
## Transaction order dependence ## Transaction order dependence

@ -11,7 +11,7 @@ Type: Warning
Contract: Unknown Contract: Unknown
Function name: _function_0xd24b08cc Function name: _function_0xd24b08cc
PC address: 779 PC address: 779
This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address found at storage slot 1. This storage slot can be written to by calling the function `_function_0x2776b163`. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
-------------------- --------------------
==== Message call to external contract ==== ==== Message call to external contract ====
@ -35,7 +35,7 @@ Type: Warning
Contract: Unknown Contract: Unknown
Function name: _function_0xe1d10f79 Function name: _function_0xe1d10f79
PC address: 912 PC address: 912
This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
-------------------- --------------------
==== Transaction order dependence ==== ==== Transaction order dependence ====

@ -4,7 +4,7 @@
"issues": [ "issues": [
{ {
"title": "Message call to external contract", "title": "Message call to external contract",
"description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.", "description": "This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.",
"function": "_function_0xeea4c864", "function": "_function_0xeea4c864",
"type": "Warning", "type": "Warning",
"address": 1038, "address": 1038,

@ -9,7 +9,7 @@
### Description ### Description
This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
## Unchecked CALL return value ## Unchecked CALL return value

@ -3,7 +3,7 @@ Type: Warning
Contract: Unknown Contract: Unknown
Function name: _function_0xeea4c864 Function name: _function_0xeea4c864
PC address: 1038 PC address: 1038
This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied adresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state. This contract executes a message call to an address provided as a function argument. Generally, it is not recommended to call user-supplied addresses using Solidity's call() construct. Note that attackers might leverage reentrancy attacks to exploit race conditions or manipulate this contract's state.
-------------------- --------------------
==== Unchecked CALL return value ==== ==== Unchecked CALL return value ====

Loading…
Cancel
Save