projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5a407
)
Remove os.exit from the Lua secure sandbox (#5090)
author
Loïc Blot
<nerzhul@users.noreply.github.com>
Sat, 21 Jan 2017 21:05:54 +0000
(22:05 +0100)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/src/script/cpp_api/s_security.cpp
b/src/script/cpp_api/s_security.cpp
index 1b1f148cdfcd277e4e2d3007b2b869d4389b06e0..be2b884cc4f94d8b92ee01311ab75131705c442a 100644
(file)
--- a/
src/script/cpp_api/s_security.cpp
+++ b/
src/script/cpp_api/s_security.cpp
@@
-99,7
+99,6
@@
void ScriptApiSecurity::initializeSecurity()
"clock",
"date",
"difftime",
- "exit",
"getenv",
"setlocale",
"time",