Skip to content

No recursion depth protection in EXECUTE SCRIPT (infinite loop) #442

@retran

Description

@retran

Description

A script that calls EXECUTE SCRIPT on itself recurses infinitely until the process is killed.

Steps to Reproduce

Create loop.mdl containing execute script 'loop.mdl'; then:

./mxcli -p project.mpr -c "execute script 'loop.mdl'"

Expected

Error after max depth reached (e.g., "maximum script nesting depth exceeded")

Actual

Infinite recursion until process killed or stack overflow

Severity

Low

Test Case Reference

session-test-cases.md §11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions