lua-users home
lua-l archive

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


On Sun, Jul 11, 2010 at 12:30 PM, Mark Hamburg <mark@grubmah.com> wrote:
> (The Lightroom policy is based on bytecode scans for global accesses together with a whitelist.)

globalsplus.lua (which does a slightly more in-depth bytecode scan
than globals.lua) uploaded to
http://lua-users.org/wiki/DetectingUndefinedVariables :

# example:
luac -p -l test/sieve.lua | lua globalsplus.lua
5       gen     set     undefined
6       coroutine.wrap  get     defined
6       coroutine       get     defined
7       coroutine       get     defined
7       coroutine.yield get     defined
12      filter  set     undefined
13      coroutine       get     defined
...