[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaD_reallocstack
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Wed, 17 Aug 2005 12:53:26 -0700
On 8/17/05, john rayn <firstname.lastname@example.org> wrote:
> is oldstack a Dangling Pointer here ?
It is indeed. But correctstack() never derefences it; it only uses it
to fix up addresses in the lua_State to point to new stack locations.
Those addresses are stored as absolute pointers rather than relative
offsets, so when the stack's address changes, they change.