Skip to content

Buggy Bug ;-) #1

Description

@adamdossa
  // Bug: If msg.value is sufficiently large, then contributions[msg.sender] will overflow
  // and the user will have managed to contribute WAY more than MAX_CONTRIBUTION.

Not sure this is accurate - i.e. you'd need more ETH than exists in circulation today in order to overflow contributions[msg.sender].

I agree that in practice it is better to check overflows with any arithmetic in Solidity, but you could argue this is an exception ;-).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions