Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

A Bit Sale - Clear dirty bits #585

Merged
merged 1 commit into from
Apr 21, 2020
Merged

Conversation

liamzebedee
Copy link
Contributor

FundingScript and RedemptionScript use mload to cast the first bytes of a byte array to bytes4. Because mload deals with 32-byte chunks, the resulting bytes4 value may contain dirty lower-order bits.

Closes: #557

FundingScript and RedemptionScript use mload to cast the first bytes of a byte array to bytes4. Because mload deals with 32-byte chunks, the resulting bytes4 value may contain dirty lower-order bits.
@liamzebedee liamzebedee marked this pull request as ready for review April 20, 2020 11:43
Copy link
Contributor

@NicholasDotSol NicholasDotSol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Shadowfiend Shadowfiend merged commit 0f585af into four-by-four-hundred Apr 21, 2020
@Shadowfiend Shadowfiend deleted the a-bit-sale branch April 21, 2020 00:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants