Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

DeviceScript wrongly considers a loop as an infinite one. #697

@hkubus

Description

@hkubus

Describe the bug
DeviceScript panics, saying Exception: InfiniteLoop wrongly

To Reproduce

  1. create two random buffers, one of the size of 4500-5000 and the other with the size of 4
  2. loop over the big buffer, running bigBuffer[i] ^= smallBuffer[i % 4] in it
  3. see error

Expected behavior
The loop runs and finishes successfully.

Screenshots
image

Additional context
I'm running through the devicescript simulator, experienced while creating a websocket library for devicescript. The loop is needed for masking the message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions