aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 13:39:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-19 13:39:25 -0300
commit8003e9544d92101c3fbb8220efe18cc135e8c380 (patch)
tree35fe75104c93545e3cc0117ddfdf39c568ff5654
parent973d81efb37d6d001cb10c987e0171e5500b9688 (diff)
downloadlua-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--bugs16
1 files changed, 14 insertions, 2 deletions
diff --git a/bugs b/bugs
index d82bedfd..430c8f7a 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.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
2260Bug{
2261what = [['string.format' may get buffer as an argument when there are
2262missing arguments and format string is too long]],
2263report = [[Roberto I., 2010/04/12]],
2264since = [[5.0]],
2265example = [[
2266x = string.rep("x", 10000) .. "%d"
2267print(string.format(x)) -- gives wrong error message
2268patch = [[
2269]]
2270}
2271