pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.59k stars 518 forks source link

Issue with running ZBS because of search history #1142

Closed moteus closed 1 year ago

moteus commented 2 years ago

Ubuntu 18.01 When I try to run ZBS - the process just exits just after starting. When I start ZBS under debugger (using VSCode if it matter) - so process has some time after start it launched and show message like

Environment variables expansion failed: missing ')' at position 36 in '{[1]="1133",[2]="^([^ ]+) ",[3]="$([^ ]+) ",[4]=".__as_array",[5]="_array",[6]="_as_array",[7]="<<<<<< HEAD",[8]="== 'table'",[9]="rindex",[10]="tabel_rindex",[11]="genre",[12]="pge",[13]="cat",[14]="imp.",[15]="parse_key_value_params"}'.

(this is my search history

image

Sorry, but right now I have no time to dig into this.

moteus commented 2 years ago

Seems there some buffer overflow. But I can not find it.

pkulchenko commented 2 years ago

Thank you for the report. It looks like it may be attempting to expand $( and failing, but it should be just a warning, so there may be something else contributing. I'll disable the expansion with SetExpandEnvVars(false).

Do you want to email me your session file (you may sanitize it, as long as it reproduces the issue)?