lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On May 16, 2018, at 11:22 AM, Viacheslav Usov <via.usov@gmail.com> wrote:

The below has been listed as a bug in 5.3.4 https://www.lua.org/bugs.html#5.3.4-2 for over a year, and there is no official fix. What are the plans for this bug? Another customer has run into this bug in the mean time...

On Thu, May 11, 2017 at 1:15 PM, Viacheslav Usov <via.usov@gmail.com> wrote:
This code:

local t = {}
for i = 1, 0x7fffffff do
t[i] = i
end

crashes the interpreter as soon as i becomes 0x40000001. within the call to computesizes(). Here is the relevant portion of the stack:

On my laptop, win7 :
Tried on Lua 5.3.4, Lua 5.4.0 work1, LuaJIT 1.1.8.
All were unable to fill tables beyond 32 Meg (0x02000000)

Got error "not enough memory"
But, no crashes.