lua-users home
lua-l archive

Re: Lua 5.4.2 crashes where Lua 5.3.6 does not

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


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.
It is a pity that three years later, this facility is neither
deprecated nor better specified as unsafe.
Cheers,
V.

AltStyle によって変換されたページ (->オリジナル) /