[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: a (sort of) bug in Lua 5b?
- From: j.wattam-bell@...
- Date: Fri, 4 Apr 2003 15:22:31 +0100
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