lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 763f84c84cc2274c817b020365033ac54489bbde
parent e4f609d0ee1cbbd357bec00c43effc659971bc7a
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 13 Jul 2012 11:53:13 -0300

Some patterns can overflow the C stack, due to recursion.

Diffstat:
Mbugs | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git 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{