[vlc-devel] [PATCH] Extensions and Lua dialogs
Antoine Cellerier
dionoea at videolan.org
Mon Dec 28 19:18:33 CET 2009
On Mon, Dec 28, 2009, Geoffroy Couprie wrote:
> Running Lua extensions in another process is the way to go: you can
> create a sandbox in Lua (cf http://lua-users.org/wiki/SandBoxes ), but
> you can't prevent it from using all of your memory.
Not that it'll help, but we already have a decent lua sandbox
implementation in share/lua/intf/modules/sandbox.lua .
About memory limits, we can probably overload the memory allocation
routines to safeguard against abusive memory allocation from lua without
having to launch in a new process. (See first argument to lua_newstate
http://www.lua.org/manual/5.1/manual.html#lua_newstate) Of course this
would only limit memory allocated by lua ... not memory allocated by non
lua vlc function calls in the vlc lua API.
--
Antoine Cellerier
dionoea
More information about the vlc-devel
mailing list