[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 答复: [ 5.4 work2 ] Stack overflow causes crash
- From: Andrew Gierth <andrew@...>
- Date: Wed, 19 Dec 2018 19:05:03 +0000
>>>>> "Roberto" == Roberto Ierusalimschy <email@example.com> writes:
>> OK, so this is another big problem for embedded environments: there
>> is no reasonable way for a single compile-time recursion count limit
>> to be able to limit the C stack depth adequately. [...]
Roberto> Lua has been using this system for many years, and it has been
Roberto> doing quite well in embedded environments.
I wonder how many of them crash if you do
local function f(s) s:gsub(".", f) return "x" end f("foo")
and more to the point, how many of them will crash on that code if they
switch to 5.4 without realizing the default stack depth grew 10x.