lua-users home
lua-l archive

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


> calling lua_getmetatable() on a stack index that is greater than
> lua_gettop() produces a segfault when lua_getmetatable() dereferences a
> null pointer returned by luaA_indexAcceptable().

Are you sure? Isn't this the code?

lapi.c:528:
  obj = luaA_indexAcceptable(L, objindex);
  if (obj != NULL) {
    ...

-- Roberto