lua-users home
lua-l archive

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


On Mon, Apr 16, 2018 at 2:22 PM, Tom Sutcliffe <tomsci@me.com> wrote:

> I've been reviewing some of my native code for safety and noticed that I've been assuming lua_next() will not raise arbitrary errors.

Not only can it raise an error, it can also crash.

http://lua-users.org/lists/lua-l/2017-12/msg00057.html

I am not sure whether the thread above should mean it is OK for it to crash in the given circumstances, but since you are checking for safety, this is definitely something to beware.

Cheers,
V.