[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: illegal luaL_buffer usage in loadlib.c
- From: Daurnimator <quae@...>
- Date: Thu, 28 Dec 2017 13:29:16 +1100
On 14 December 2017 at 03:57, Russell Haley <email@example.com> wrote:
> For my edification, if it *could* occur would this be considered a memory leak?
No. It would be an incorrect use of stack.
If a different luaL_buffinit implementation decided to push something
onto the stack unconditionally then e.g. the lua_rawgeti in findloader
would operate on the wrong index (which is likely to not be a table,
and hence likely to crash!)