finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
https://perspective.finos.org/
Apache License 2.0
7.72k stars 1.04k forks source link

Infinite loops in ExprTK expressions lock the engine #2626

Open texodus opened 1 month ago

texodus commented 1 month ago

Bug Report

Steps to Reproduce:

  1. Create an ExprTK expression with an infinite loop, for (var i := 1; i;) {}. Don't save the expression or add it to the View, just type it in.

Expected Result:

Nothing, while clicking "save" is bad, this expression is valid.

Actual Result:

A miniature black hole is suddenly created without warning.

Environment:

Perspective 2.10.0, all languages.

timkpaine commented 1 month ago

Xref https://github.com/finos/perspective/issues/2104