lua-users home
lua-l archive

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

On Sun, Jul 8, 2012 at 1:02 PM, Luiz Henrique de Figueiredo
<> wrote:
>> Pattern matching in Lua uses recursion to implement several features.
>> The recursion depth is not limited, meaning that user code can cause
>> stack exhaustion and thus a segfault.
> Could you please post a minimal example that exhibits this problem?

[corsix@newman ~]$ lua
Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> =("a"):rep(2^20):match((".?"):rep(2^20))
Segmentation fault