Re: illegal luaL_buffer usage in loadlib.c
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: illegal luaL_buffer usage in loadlib.c
- From: Daurnimator <quae@...>
- Date: 2017年12月28日 13:29:16 +1100
On 14 December 2017 at 03:57, Russell Haley <russ.haley@gmail.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!)