[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: segfault in lua(L)_getmetatable on invalid stack index
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 07 Jul 2003 10:20:38 -0300
> 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