Purpose: this page lists issues which can probably be changed with no bad side-effects - see also More complex changes for Lua


Accepting compiled code in dostring(s) - The 4.0 release has a check in dostring (luaB_dostring) which rejects compiled code snippets. This prevents running compiled code that is obtained by other means than reading from the file system (e.g. sockets, memory-mapped files). At the same time, lua_dostring omits this checks and uses strlen() to figure out what to pass on to lua_dobuffer. This will not work when given compiled code with embedded null bytes - it would seem better to move the above test from luaB_dostring to lua_string.

JCW: This raises an issue which, after several years of scripting and extending scripting languages, I have come to find important enough to give it its own page, Scripting is about policy.


Last modified
2001-02-04

(216.232.136.19)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated