Skip to content

Repeat "zero" times loops don't ignore nested loops correctly #362

Closed
@adazem009

Description

@adazem009

image

When the repeat count isn't greater than 0, the loop should be skipped. The current implementation jumps to the next OP_LOOP_END instruction which is incorrect because the nested loop has that instruction too before the repeat loop's end instruction.

This script results in a crash because the repeat until loop's end instruction isn't able to read the start address because the list of loops is empty.

repeat_zero_crash.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Priority: CriticalbugSomething isn't workingcrashIssues involving a crash

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions