Commit 6dee1acc authored by nanahira's avatar nanahira

disable luaL_loadbufferx

parent a5900222
Pipeline #40797 passed with stages
in 2 minutes and 50 seconds
...@@ -258,7 +258,7 @@ int32_t interpreter::load_script(const char* script_name) { ...@@ -258,7 +258,7 @@ int32_t interpreter::load_script(const char* script_name) {
++no_action; ++no_action;
luaL_checkstack(current_state, 2, nullptr); luaL_checkstack(current_state, 2, nullptr);
int32_t error = 0; int32_t error = 0;
if (enable_unsafe_feature) if (enable_unsafe_feature && true)
error = luaL_loadbuffer(current_state, (const char*)buffer, len, script_name) || lua_pcall(current_state, 0, 0, 0); error = luaL_loadbuffer(current_state, (const char*)buffer, len, script_name) || lua_pcall(current_state, 0, 0, 0);
else else
error = luaL_loadbufferx(current_state, (const char*)buffer, len, script_name, "t") || lua_pcall(current_state, 0, 0, 0); error = luaL_loadbufferx(current_state, (const char*)buffer, len, script_name, "t") || lua_pcall(current_state, 0, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment