Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fixed RETURNDATA size for built-ins #6652

Merged
merged 1 commit into from
Oct 9, 2017
Merged

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 5, 2017

Built-ins in some cases overwrite only a portion of the output memory slice. E.g. ecrecover on invalid signature. RETURNDATASIZE needs to hold the size that has been actually written in such cases.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. F0-consensus 💣 Issue can lead to a consensus failure. M4-core ⛓ Core client code / Rust. B0-patch labels Oct 5, 2017
@5chdn 5chdn added this to the Patch milestone Oct 5, 2017
@arkpar arkpar added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 5, 2017
@arkpar arkpar force-pushed the returndatasize-builtin-fix branch from 786caf3 to 6a1eea1 Compare October 5, 2017 17:31
@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Oct 5, 2017
@arkpar arkpar force-pushed the returndatasize-builtin-fix branch from 5876297 to 6a1eea1 Compare October 5, 2017 21:15
@5chdn 5chdn added the P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible. label Oct 6, 2017
@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 7, 2017
@rphmeier rphmeier requested a review from gavofyork October 7, 2017 08:13
@debris debris merged commit de0d12d into master Oct 9, 2017
@5chdn 5chdn deleted the returndatasize-builtin-fix branch January 3, 2018 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. F0-consensus 💣 Issue can lead to a consensus failure. M4-core ⛓ Core client code / Rust. P2-asap 🌊 No need to stop dead in your tracks, however issue should be addressed as soon as possible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants