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

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

Open
xiboon opened this issue Jul 1, 2024 · 0 comments
Open

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

xiboon opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xiboon
Copy link

xiboon commented Jul 1, 2024

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.

@xiboon xiboon added the bug Something isn't working label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant