Skip to content

BUG - ERC1888 array overrun #3365

@Jon-Salmon

Description

@Jon-Salmon

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions