Commit d5084b8feb88da77feb7e37a64cf0fdaed6380ec

Authored by DarkGod
1 parent 05664778

Removed an unsecure file access function

... ... @@ -83,6 +83,7 @@ configuration "Debug"
83 83 targetdir "bin/Debug"
84 84 if _OPTIONS.luaassert then defines {"LUA_USE_APICHECK"} end
85 85 if _OPTIONS.pedantic then buildoptions { "-Wall" } end
  86 + defines {"TE4_LUA_ALLOW_GENERIC_IO"}
86 87
87 88 configuration "Release"
88 89 defines { "NDEBUG=1" }
... ...
... ... @@ -18,7 +18,9 @@ static const luaL_Reg lualibs[] = {
18 18 {"", luaopen_base},
19 19 {LUA_LOADLIBNAME, luaopen_package},
20 20 {LUA_TABLIBNAME, luaopen_table},
  21 +#ifdef TE4_LUA_ALLOW_GENERIC_IO
21 22 {LUA_IOLIBNAME, luaopen_io},
  23 +#endif
22 24 {LUA_OSLIBNAME, luaopen_os},
23 25 {LUA_STRLIBNAME, luaopen_string},
24 26 {LUA_MATHLIBNAME, luaopen_math},
... ...
... ... @@ -19,7 +19,9 @@ static const luaL_Reg lj_lib_load[] = {
19 19 { "", luaopen_base },
20 20 { LUA_LOADLIBNAME, luaopen_package },
21 21 { LUA_TABLIBNAME, luaopen_table },
  22 +#ifdef TE4_LUA_ALLOW_GENERIC_IO
22 23 { LUA_IOLIBNAME, luaopen_io },
  24 +#endif
23 25 { LUA_OSLIBNAME, luaopen_os },
24 26 { LUA_STRLIBNAME, luaopen_string },
25 27 { LUA_MATHLIBNAME, luaopen_math },
... ...