Skip to content

Commit

Permalink
Remove os.exit from the Lua secure sandbox (#5090)
Browse files Browse the repository at this point in the history
os.exit will exit not using proper resource liberation paths.

Mods should call the proper exit mod using our API
  • Loading branch information
nerzhul committed Jan 21, 2017
1 parent 6d5a407 commit 39123fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/script/cpp_api/s_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void ScriptApiSecurity::initializeSecurity()
"clock",
"date",
"difftime",
"exit",
"getenv",
"setlocale",
"time",
Expand Down

0 comments on commit 39123fc

Please sign in to comment.