From 763f84c84cc2274c817b020365033ac54489bbde Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 13 Jul 2012 11:53:38 -0300 Subject: [PATCH] Some patterns can overflow the C stack, due to recursion. --- bugs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/bugs b/bugs index 492e9b31..bd79a895 100644 --- a/bugs +++ b/bugs @@ -1880,8 +1880,8 @@ patch = [[ +++ lundump.c 2008/04/04 19:51:41 2.7.1.4 @@ -1,5 +1,5 @@ /* --** $Id: bugs,v 1.114 2012/05/11 14:10:28 roberto Exp roberto $ -+** $Id: bugs,v 1.114 2012/05/11 14:10:28 roberto Exp roberto $ +-** $Id: bugs,v 1.115 2012/06/11 17:49:37 roberto Exp roberto $ ++** $Id: bugs,v 1.115 2012/06/11 17:49:37 roberto Exp roberto $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -2685,6 +2685,16 @@ patch = [[ ]] } +Bug{ +what = [[Some patterns can overflow the C stack, due to recursion]], +report = [[Tim Starling, 2012/07/08]], +since = [[2.5]], +example = [[print(string.find(string.rep("a", 2^20), string.rep(".?", 2^20)))]], +patch = [[ +]] +} +]=] + --[=[ Bug{