Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Overflow and termination issue #81

Closed
wuestholz opened this issue Feb 20, 2018 · 2 comments
Closed

Overflow and termination issue #81

wuestholz opened this issue Feb 20, 2018 · 2 comments

Comments

@wuestholz
Copy link

I noticed an issue in function getTransactionIds of the MultiSigWallet contract: if the from argument is greater than the to argument the subtraction on line 366 will overflow, creating a very large array. Independently, this would also result in the subsequent loop not terminating for a very long time.

I would suggest that you add more parameter validation at the beginning of the method body to prevent this (e.g., require(from <= to) or require(from < to) depending on the intended semantics).

@denisgranha
Copy link
Contributor

They @wuestholz thanks for reviewing the code :)
This function is never used by any transaction, it's just a helper function for easier integration with frontend, only used for read operations

@wuestholz
Copy link
Author

@denisgranha I see. Thanks for looking into it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants