Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ docs/
lcov.info
lcov.*
.lcov*
*lcov*
*lcov*

settings.local.json
177 changes: 0 additions & 177 deletions solidity/src/helpers/CATValidator.sol

This file was deleted.

32 changes: 0 additions & 32 deletions solidity/src/helpers/CallProxy.sol

This file was deleted.

87 changes: 0 additions & 87 deletions solidity/src/helpers/libs/LibExecutionConstraint.sol

This file was deleted.

8 changes: 8 additions & 0 deletions solidity/test/CallProxy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,12 @@ contract CallProxyTest is Test {
assertEq(rt, abi.encode(returnData));
assertEq(success, true);
}

function test_emptyEtherTransfer_fails() external {
vm.deal(address(this), 1 ether);
// Empty calldata causes sub(calldatasize(), 32) to underflow to 2^256-32,
// triggering an impossibly large memory expansion that exhausts all gas.
(bool success,) = address(c).call{ value: 1 ether }("");
assertFalse(success);
}
}
Loading
Loading