lua-users home
lua-l archive

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


On Fri, Sep 12, 2008 at 9:47 PM, Veli-Pekka Tätilä <vtatila@gmail.com> wrote:
Now I only need a whitelist of allowed globals including built-ins and other modules (via reflection), and maybe a small Lua script around that for proper filtering. All that should be easily doable. So thanks for indirectly pointing me to one simple solution that just might be good enough for my needs.

This will catch typos such as taable.insert(), because the problem is in the global var. However, it won't catch table.iinsert(), because the global var 'table' indeed exists, and luac can't tell which field names are legal in it. For that you need a deeper analysis, metalint-style.

-- Fabien.