Skip to content

Commit

Permalink
♻️ LibZip memsafe (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z authored Feb 11, 2025
1 parent 947389e commit 0ec852b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/LibZip.sol
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ library LibZip {
/// For efficiency, this function will directly return the results, terminating the context.
/// If called internally, it must be called at the end of the function.
function cdFallback() internal {
/// @solidity memory-safe-assembly
assembly {
if iszero(calldatasize()) { return(calldatasize(), calldatasize()) }
let o := 0
Expand Down

0 comments on commit 0ec852b

Please sign in to comment.