aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-27 17:11:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-27 17:11:11 -0300
commit58c3aa8b5f51194980a9abf463a2648bb1413925 (patch)
treedf81fcd2496b56e94850a451f6f100b97305fe9b
parentc1f78ff3d32298fbae950bf655bdca11179343ce (diff)
downloadlua-58c3aa8b5f51194980a9abf463a2648bb1413925.tar.gz
lua-58c3aa8b5f51194980a9abf463a2648bb1413925.tar.bz2
lua-58c3aa8b5f51194980a9abf463a2648bb1413925.zip
malicious zero-length string in binary code may segfault Lua +
wrong code generation for some particular boolean expressions
-rw-r--r--bugs32
1 files changed, 30 insertions, 2 deletions
diff --git a/bugs b/bugs
index e76692b0..41c5f83e 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.97 2008/07/11 17:27:41 roberto Exp roberto $ 1883-** $Id: bugs,v 1.98 2008/08/06 13:32:45 roberto Exp roberto $
1884+** $Id: bugs,v 1.97 2008/07/11 17:27:41 roberto Exp roberto $ 1884+** $Id: bugs,v 1.98 2008/08/06 13:32:45 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 */
@@ -2077,3 +2077,31 @@ patch = [[
2077]], 2077]],
2078} 2078}
2079 2079
2080
2081-----------------------------------------------------------------
2082-- Lua 5.1.4
2083
2084Bug{
2085what = [[malicious zero-length string in binary code may segfault Lua]],
2086report = [["Peter Cawley, on 2008/09/01]],
2087since = [[5.1]],
2088example = [[
2089loadstring(('').dump(function()X''end):gsub('\2%z%z%zX','\0\0\0'))()
2090]],
2091patch = [[
2092]],
2093}
2094
2095
2096Bug{
2097what = [[wrong code generation for some particular boolean expressions]],
2098report = [["Brian Kelley, on 2009/04/15]],
2099since = [[5.0]],
2100example = [[
2101print(((1 or false) and true) or false) --> 1
2102-- should be 'true'
2103]],
2104patch = [[
2105]],
2106}
2107