Skip to content

Lua security improvements

Latest
Compare
Choose a tag to compare
@mkhan45 mkhan45 released this 18 Jun 14:52
· 54 commits to master since this release

I've added a memory limit of 262,144 kilobytes (kibibytes?) and an instruction limit of 50,000. These are kind of arbitrary and might need to be changed, especially the instruction limit. Maybe I should add a (non lua) config file for it.

There's also a global body limit now.

I don't expect these changes to protect users from malicious targeted scripts but it should prevent kids from sending their friends a script to crash their computer

//TODO
compile for windows