forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[codegen]!: check
returndatasize
even when `skip_contract_check…
…` is set (vyperlang#4148) previously, when `skip_contract_check=True` was set, the ABI decoding routine could result in garbage memory in the case that no contract is at the target address, based on the logic that, if we don't care about whether a contract exists at the target, we can skip the returndatasize check. however, it makes sense for the ABI decoder to in any case include the returndatasize check, to prevent the garbage data case as previously mentioned in the docs. this is a breaking change, since previously calls with `skip_contract_set=True` could result in garbage memory - and now they would revert instead. this represents a slight performance regression in that case, but it is easier to reason about and also ensures the user always decodes valid data.
- Loading branch information
1 parent
07ddea6
commit cefb0c5
Showing
3 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters