OpenZeppelin / openzeppelin-contracts

OpenZeppelin Contracts is a library for secure smart contract development.
https://openzeppelin.com/contracts
MIT License
24.8k stars 11.77k forks source link

Use free memory pointer for returndatacopy #5057

Closed frangio closed 4 months ago

frangio commented 4 months ago

Fixing memory safety as explained here: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/5052/files#r1616302783

The Solidity docs state:

these restrictions still need to be followed, even if the assembly block reverts or terminates.

changeset-bot[bot] commented 4 months ago

⚠️ No Changeset found

Latest commit: 5a979b3d065110124b43e4440ce4028213f40db2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

frangio commented 4 months ago

Does this need a changeset?

gitpoap-bot[bot] commented 4 months ago

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2024 OpenZeppelin Contracts Contributor:

GitPOAP: 2024 OpenZeppelin Contracts Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.