[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [Lua 5.3] io.lines can be called in a way to trigger an assertion
- From: Patrick Donnelly <batrick@...>
- Date: Thu, 9 Jul 2015 18:35:02 -0400
$ ./lua
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> t ={}; for i = 1, 4096 do t[i] = i end; f=io.lines("/dev/null", table.unpack(t));
lua: lapi.c:534: lua_pushcclosure: Assertion `(n <= (0x7f * 2 + 1)) &&
"upvalue index too large"' failed.
Aborted (core dumped)
Assertions must be turned on to see this bug.
--
Patrick Donnelly