lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: [BUG] crash in Lua on table insertion
From
: Viacheslav Usov <via.usov@
...
>
Date
: Thu, 17 May 2018 10:51:45 +0200
On Wed, May 16, 2018 at 10:32 PM, Roberto Ierusalimschy
<
roberto@inf.puc-rio.br
>
wrote:
> Did you try this code with the Lua 5.4 work version?
Lua 5.4.0 (work1) Copyright (C) 1994-2018 Lua.org, PUC-Rio
> t = {} local t = t for i = 1, 0x7fffffff do t[i] = i end
> print(#t)
2147483647
> t = {} local t = t for i = 1, 0x7ffffffff do t[i] = i end
stdin:1: table overflow
stack traceback:
stdin:1: in main chunk
[C]: in ?
> print(#t)
3221225472
>
Cheers,
V.
References
:
Re: [BUG] crash in Lua on table insertion
,
Viacheslav Usov
Re: [BUG] crash in Lua on table insertion
,
Roberto Ierusalimschy
Prev by Date:
Re: Table inconsistency bug note
Next by Date:
Re: Table inconsistency bug note
Previous by thread:
Re: [BUG] crash in Lua on table insertion
Next by thread:
Re: [BUG] crash in Lua on table insertion
Index(es):
Date
Thread