You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
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).
The text was updated successfully, but these errors were encountered:
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
I noticed an issue in function
getTransactionIds
of theMultiSigWallet
contract: if thefrom
argument is greater than theto
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)
orrequire(from < to)
depending on the intended semantics).The text was updated successfully, but these errors were encountered: