Commit c2ad8c3f by Alex Beregszaszi Committed by Francisco Giordano

Update the use of call() with selector only. (#1033)

parent fd253d6b
...@@ -5,7 +5,7 @@ contract ReentrancyAttack { ...@@ -5,7 +5,7 @@ contract ReentrancyAttack {
function callSender(bytes4 data) public { function callSender(bytes4 data) public {
// solium-disable-next-line security/no-low-level-calls // solium-disable-next-line security/no-low-level-calls
require(msg.sender.call(data)); require(msg.sender.call(abi.encodeWithSelector(data)));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment