Skip to content

Buggy Bug ;-) #1

@adamdossa

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 ;-).

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