diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-19 13:39:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-19 13:39:25 -0300 |
commit | 8003e9544d92101c3fbb8220efe18cc135e8c380 (patch) | |
tree | 35fe75104c93545e3cc0117ddfdf39c568ff5654 | |
parent | 973d81efb37d6d001cb10c987e0171e5500b9688 (diff) | |
download | lua-8003e9544d92101c3fbb8220efe18cc135e8c380.tar.gz lua-8003e9544d92101c3fbb8220efe18cc135e8c380.tar.bz2 lua-8003e9544d92101c3fbb8220efe18cc135e8c380.zip |
'string.format' may get buffer as an argument when there are
missing arguments and format string is too long
-rw-r--r-- | bugs | 16 |
1 files changed, 14 insertions, 2 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.104 2009/08/05 13:09:38 roberto Exp roberto $ | 1883 | -** $Id: bugs,v 1.105 2009/11/23 14:59:30 roberto Exp roberto $ |
1884 | +** $Id: bugs,v 1.104 2009/08/05 13:09:38 roberto Exp roberto $ | 1884 | +** $Id: bugs,v 1.105 2009/11/23 14:59:30 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 | */ |
@@ -2257,3 +2257,15 @@ patch = [[ | |||
2257 | ]] | 2257 | ]] |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | Bug{ | ||
2261 | what = [['string.format' may get buffer as an argument when there are | ||
2262 | missing arguments and format string is too long]], | ||
2263 | report = [[Roberto I., 2010/04/12]], | ||
2264 | since = [[5.0]], | ||
2265 | example = [[ | ||
2266 | x = string.rep("x", 10000) .. "%d" | ||
2267 | print(string.format(x)) -- gives wrong error message | ||
2268 | patch = [[ | ||
2269 | ]] | ||
2270 | } | ||
2271 | |||