Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - ERC1888 array overrun #3365

Open
Jon-Salmon opened this issue Sep 21, 2022 · 0 comments
Open

BUG - ERC1888 array overrun #3365

Jon-Salmon opened this issue Sep 21, 2022 · 0 comments

Comments

@Jon-Salmon
Copy link

Jon-Salmon commented Sep 21, 2022

The batchIssue function appears to have a bug where the for loop is bounded incorrectly resulting in an array overflow.

ids = new uint256[](_values.length);

for (uint256 i = 0; i <= _values.length; i++) {
ids[i] = i + _latestCertificateId + 1;

@Jon-Salmon Jon-Salmon changed the title BUG - ERC1188 array overrun BUG - ERC1888 array overrun Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant