Skip to content

Commit

Permalink
check limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Nov 26, 2024
1 parent 8c5e492 commit b54d56b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/lib/ExecLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ library ExecLib {
// Extract the ERC7579 Executions
executionBatch.offset := add(dataPointer, 32)
executionBatch.length := calldataload(dataPointer)
if slt(sub(callData.length, executionBatch.length), 0) {
revert(0, 0)
}
}
}

Expand Down

0 comments on commit b54d56b

Please sign in to comment.