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

Invalid lua can trigger assertion and affect future command #1079

Open
prvyk opened this issue Mar 8, 2025 · 0 comments
Open

Invalid lua can trigger assertion and affect future command #1079

prvyk opened this issue Mar 8, 2025 · 0 comments
Assignees

Comments

@prvyk
Copy link
Contributor

prvyk commented Mar 8, 2025

Describe the bug

EVAL "return 'hello lua" 0

(mismatched quote)

(error) Compilation error: [string "return 'hello lua"]:1: unfinished string near

EVAL "return 'hello lua'" 0

(now the quoting is correct)

(error) ERR Lua encountered an error: attempt to call a nil value

EVAL "return 'hello lua'" 0

(exact same as above, quoting is correct)

"hello lua"

  1. EVAL "return 'hello lua" 0
    (exact same as 1st, so mismatched quote)

"hello lua"

The first command triggers an assertion in LuaStateWrapper.cs:372 **, and also affects processing of next command and so on.

** It's not particular to that specific command, the assertion will be triggered also on other failures like 'EVAL foo 0'.

Steps to reproduce the bug

EVAL foo 0
EVAL "return bar" 0
EVAL "return bar" 0
EVAL foo 0

Expected behavior

No response

Screenshots

No response

Release version

v1.0.59

IDE

No response

OS version

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants