aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-03 10:30:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-03 10:30:23 -0300
commit007f66408db5b8c54f97909e5d5027f1454544e0 (patch)
treed0d8144a377ade339be78e4beafe722a31299e8b
parent48c745a611888ab1e163cf184fbf5ae2ae743dad (diff)
downloadlua-007f66408db5b8c54f97909e5d5027f1454544e0.tar.gz
lua-007f66408db5b8c54f97909e5d5027f1454544e0.tar.bz2
lua-007f66408db5b8c54f97909e5d5027f1454544e0.zip
bug: compiler can optimize away overflow check in 'table.concat'
-rw-r--r--bugs21
1 files changed, 16 insertions, 5 deletions
diff --git a/bugs b/bugs
index d5f6ae41..2886f13a 100644
--- a/bugs
+++ b/bugs
@@ -1880,8 +1880,8 @@ patch = [[
1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4 1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
1881@@ -1,5 +1,5 @@ 1881@@ -1,5 +1,5 @@
1882 /* 1882 /*
1883-** $Id: bugs,v 1.128 2013/11/08 17:45:10 roberto Exp roberto $ 1883-** $Id: bugs,v 1.129 2013/11/08 18:23:16 roberto Exp roberto $
1884+** $Id: bugs,v 1.128 2013/11/08 17:45:10 roberto Exp roberto $ 1884+** $Id: bugs,v 1.129 2013/11/08 18:23:16 roberto Exp roberto $
1885 ** load precompiled Lua chunks 1885 ** load precompiled Lua chunks
1886 ** See Copyright Notice in lua.h 1886 ** See Copyright Notice in lua.h
1887 */ 1887 */
@@ -3172,10 +3172,8 @@ patch = [[
3172 close_state(L); 3172 close_state(L);
3173]] 3173]]
3174} 3174}
3175]=]=]
3176 3175
3177 3176
3178--[=[
3179Bug{ 3177Bug{
3180what = [[Resuming the running coroutine makes it unyieldable]], 3178what = [[Resuming the running coroutine makes it unyieldable]],
3181report = [[Florian Nücke, 2013/10/28]], 3179report = [[Florian Nücke, 2013/10/28]],
@@ -3202,7 +3200,20 @@ patch = [[
3202 L->nCcalls--; 3200 L->nCcalls--;
3203]] 3201]]
3204} 3202}
3205]=] 3203
3204
3205Bug{
3206what = [[compiler can optimize away overflow check in 'table.concat']],
3207report = [[Paige DePol, 2014/03/30]],
3208since = [[5.1 (at least)]],
3209fix = nil,
3210example = [[
3211> unpack({}, 0, 2^31 - 1)
3212(segfaults on some platforms with some compiler options)
3213]],
3214patch = [[
3215]]
3216}
3206 3217
3207 3218
3208--[=[ 3219--[=[