[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Patch for luaossl for Lua 5.4.3 (warning for users of luaL_Buffer!)
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Mon, 19 Apr 2021 18:53:23 +0800
Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于2021年4月9日周五 上午4:58写道:
>
> > But until 5.4.3 the code in luaossl worked in practice even though it was wrong in theory. [...]
>
> Before 5.4.3, aux. buffers also used the stack, but only when their
> content reached a minimum size (1K?). So, there is a chance that your
> code did not work in practice all the time, only when the practice did
> not produce large enough strings.
>
> From this point of view, the new implementation is more robust, as it
> exposes this kind of bug.
>
Someone reports a similar issue after I update to 5.4.3 in my project
today: https://github.com/cloudwu/skynet/issues/1388
I think I should check all of my old projects.
--
http://blog.codingnow.com