lua-users home
lua-l archive

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



On 16 Apr, 2018, at 02:08 PM, 云风 Cloud Wu <cloudwu@gmail.com> wrote:

`lua_next`  may raise error when you pass a key that is not exist in the table.

Good point, but that would qualify it for a "v" ("the function may raise an error on purpose") rather than an "e" ("the function may raise any errors (it can run arbitrary Lua code, either directly or through metamethods)" wouldn't it?

Is there any way in which a call to lua_next() (with a valid table index and a valid key on the stack) could result in arbitrary code being run?

Thanks,

Tom