lua-users home
lua-l archive

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


I just got an address exception in the Lua 5b api. It happened when calling 
lua_getmetatable with an invalid stack index.

The problem seems to be that with an invalid index, ttype(obj) in the switch 
statement (in lua_getmetatable) has a null argument.

I guess it's stretching a point to call this a bug - I should check the index 
before calling the function - but Lua is usually so polite and forbearing when 
subjected to this kind of maltreatment. And I apologise for raising it at this 
late stage.

jwb