mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Fix potential vulnerable cloned functions: Bug: Lua can generate wrong code when _ENV is <const>
This commit is contained in:
parent
edf2ce7cfe
commit
dd0de15269
1 changed files with 1 additions and 0 deletions
|
|
@ -300,6 +300,7 @@ static void singlevar (LexState *ls, expdesc *var) {
|
|||
expdesc key;
|
||||
singlevaraux(fs, ls->envn, var, 1); /* get environment variable */
|
||||
lua_assert(var->k != VVOID); /* this one must exist */
|
||||
luaK_exp2anyregup(fs, var); /* but could be a constant */
|
||||
codestring(ls, &key, varname); /* key is variable name */
|
||||
luaK_indexed(fs, var, &key); /* env[varname] */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue