Skip to content

Commit

Permalink
fix: verify returndatasize from setupAndEnableModule()
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdubey521 committed Nov 30, 2023
1 parent 5c5a6bf commit a2576d6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ contract SecurityPolicyManagerPlugin is ISecurityPolicyManagerPlugin {

switch success
case 0x1 {
moduleInstallationSuccess := mload(ptr)
module := mload(add(ptr, 0x60))
if eq(size, 0x80) {
moduleInstallationSuccess := mload(ptr)
module := mload(add(ptr, 0x60))
}
}
case 0x0 {
revert(ptr, size)
Expand Down

0 comments on commit a2576d6

Please sign in to comment.