diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-03 10:30:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-03 10:30:23 -0300 |
commit | 007f66408db5b8c54f97909e5d5027f1454544e0 (patch) | |
tree | d0d8144a377ade339be78e4beafe722a31299e8b | |
parent | 48c745a611888ab1e163cf184fbf5ae2ae743dad (diff) | |
download | lua-007f66408db5b8c54f97909e5d5027f1454544e0.tar.gz lua-007f66408db5b8c54f97909e5d5027f1454544e0.tar.bz2 lua-007f66408db5b8c54f97909e5d5027f1454544e0.zip |
bug: compiler can optimize away overflow check in 'table.concat'
-rw-r--r-- | bugs | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -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 | --[=[ | ||
3179 | Bug{ | 3177 | Bug{ |
3180 | what = [[Resuming the running coroutine makes it unyieldable]], | 3178 | what = [[Resuming the running coroutine makes it unyieldable]], |
3181 | report = [[Florian Nücke, 2013/10/28]], | 3179 | report = [[Florian Nücke, 2013/10/28]], |
@@ -3202,7 +3200,20 @@ patch = [[ | |||
3202 | L->nCcalls--; | 3200 | L->nCcalls--; |
3203 | ]] | 3201 | ]] |
3204 | } | 3202 | } |
3205 | ]=] | 3203 | |
3204 | |||
3205 | Bug{ | ||
3206 | what = [[compiler can optimize away overflow check in 'table.concat']], | ||
3207 | report = [[Paige DePol, 2014/03/30]], | ||
3208 | since = [[5.1 (at least)]], | ||
3209 | fix = nil, | ||
3210 | example = [[ | ||
3211 | > unpack({}, 0, 2^31 - 1) | ||
3212 | (segfaults on some platforms with some compiler options) | ||
3213 | ]], | ||
3214 | patch = [[ | ||
3215 | ]] | ||
3216 | } | ||
3206 | 3217 | ||
3207 | 3218 | ||
3208 | --[=[ | 3219 | --[=[ |