lua-users home
lua-l archive

Re: Sandboxing

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2012年1月20日 Pierre-Yves Gérardy <pygy79@gmail.com>:
> local function safe_loadstring (s,chunkname)
>   if s:match"^%.Lua" then
>     return false, "Attempt to load bytecode." -- are there other
> bytecode signatures?
That check won't detect bytecode. You'd probably be better with "if
s:byte() == 27 then".

AltStyle によって変換されたページ (->オリジナル) /