Remove os.exit from the Lua secure sandbox (#5090)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 21 Jan 2017 21:05:54 +0000 (22:05 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Jan 2017 21:05:54 +0000 (22:05 +0100)
os.exit will exit not using proper resource liberation paths.

Mods should call the proper exit mod using our API

src/script/cpp_api/s_security.cpp

index 1b1f148cdfcd277e4e2d3007b2b869d4389b06e0..be2b884cc4f94d8b92ee01311ab75131705c442a 100644 (file)
@@ -99,7 +99,6 @@ void ScriptApiSecurity::initializeSecurity()
                "clock",
                "date",
                "difftime",
-               "exit",
                "getenv",
                "setlocale",
                "time",