Skip to content

Infinite loops in ExprTK expressions lock the engine #2626

Closed

Description

@texodus

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.

Activity

  1. timkpaine commented on May 22, 2024

    @timkpaine
    Member

    Xref #2104

  2. texodus commented on Sep 5, 2026

    @texodus
    MemberAuthor

    This was fixed in #3217 by turning on ExprTK's loop sanitization during validation:

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConcrete, reproducible bugs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions