[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.4.2 crashes where Lua 5.3.6 does not
- From: Sean Conner <sean@...>
- Date: Sat, 19 Dec 2020 17:15:12 -0500
It was thus said that the Great Viacheslav Usov once stated:
> On Sat, Dec 19, 2020 at 11:25 AM Andrew Gierth
> <andrew@tao11.riddles.org.uk> wrote:
>
> > And indeed, what you do to the stack in the deentify / deentifyn
> > functions is a classic example of violating the luaL_Buffer protocol -
> > you're assuming you can push something, do an addstring, and then pop
> > the thing that you pushed - but this is explicitly forbidden, since
> > addstring is allowed to push new entries on the stack.
>
> Is this the same thing as in
> http://lua-users.org/lists/lua-l/2017-11/msg00004.html?
>
> If this is, it is somewhat ironic that Sean participated in that thread.
Now *that's* funny. I completely forgot about that thread when I wrote
the code that's crashing earlier this year.
> It is a pity that three years later, this facility is neither
> deprecated nor better specified as unsafe.
Or at least a way for LUA_USE_APICHECK to detect the issue. I did try
that when debugging to no avail.
-spc