Skip to content

ASMAPI#findFirstInstructionBefore ignores startIndex parameter #35

@Meldexun

Description

@Meldexun

The method ASMAPI#findFirstInstructionBefore ignores the startIndex parameter and instead always starts searching from the end of the method.

for (int i = Math.max(method.instructions.size() - 1, startIndex); i >= 0; i--) {

Math.max should be replaced with Math.min to fix this.

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