lua-users home
lua-l archive

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


On 8/17/05, john rayn <johnrayn@hotmail.com> 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.

Ben