-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua globals protection #11
Comments
fwiw, there's a bunch of conversation on the norns repo that might be relevant here. the globals meta-issue is a good place to start (if you haven't perused it already): i'd be curious if the "readonly table" hack in monome/norns#667 might be useful? |
the readonly function is a good solution for this. it'd be trivial to add. i'll get it into the core lib. |
readonly approach seems good to me. What are we thinking to protect? My first thoughts:
|
Demoting to 1.1 as this feels like a problem we can solve when it arises? |
sorry for the slow reply; i haven't dug deeply into the APIs yet but my gut says your candidates look right. the C-functions should get guarded somehow for sure. i think we can follow the lead of whatever we end up doing for norns... anyway, agreed we can tackle all of this opportunistically! |
A non issue in practice. |
Need a solution to make sure the user can't create a script (saved in flash as the default) that makes the lua environment unresponsive, thus being unable to change the script.
Ideas:
These would include a small number of functions that would break script-updating (dostring(), usb2repl() etc).
The text was updated successfully, but these errors were encountered: