[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug: Segfault calling tostring on a result from debug.getlocal
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 Apr 2012 16:40:49 -0300
> The temporary local value of type proto is left behind by the loadstring call.
> Usually values of that type are completely internal, but debug.getlocal at
> the right moment allowed it to leak out.
Many thanks for the report. A quick fix would be to filter out that
values in lua_getlocal; maybe a better (but more extensive) fix would be
to avoid putting prototypes in the stack in the first place.
-- Roberto