mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
os.date and string.dump potentially unsafe
This commit is contained in:
parent
cdfb08ed0f
commit
05456059f1
1 changed files with 2 additions and 2 deletions
|
@ -408,13 +408,13 @@ void ScriptApiSecurity::initializeSecuritySSCSM()
|
|||
"xpcall",
|
||||
// Completely safe libraries
|
||||
"coroutine",
|
||||
"string",
|
||||
"string", //TODO: string.dump?
|
||||
"table",
|
||||
"math",
|
||||
"bit",
|
||||
};
|
||||
static const char *os_whitelist[] = {
|
||||
"date",
|
||||
"date", // TODO: can crash? (<http://lua-users.org/wiki/SandBoxes>)
|
||||
"difftime",
|
||||
"time"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue