1. 27 Apr, 2022 2 commits
    • meir's avatar
      Protect any table which is reachable from globals and added globals allow list. · 11b602fb
      meir authored
      The allow list is done by setting a metatable on the global table before initializing
      any library. The metatable set the `__newindex` field to a function that check
      the allow list before adding the field to the table. Fields which is not on the
      allow list are simply ignored.
      
      After initialization phase is done we protect the global table and each table
      that might be reachable from the global table. For each table we also protect
      the table metatable if exists.
      11b602fb
    • meir's avatar
      Added support for Lua readonly tables. · 13c1e1f2
      meir authored
      The new feature can be turned off and on using the new `lua_enablereadonlytable` Lua API.
      
      (cherry picked from commit 92b5098b87e2d0880a530899119524bf1dfbc332)
      13c1e1f2
  2. 29 Apr, 2013 1 commit
  3. 25 May, 2011 1 commit