lua-users home
lua-l archive

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


On Thu, Dec 13, 2018 at 7:15 PM Roberto Ierusalimschy wrote:
it seems easier to just
limit the maximum number of '=' in a long bracket. I don't think people
will mind a limit of 1000.

IMO, it's not a good idea.
If this limit is N, then minimal size of non-quotable string is about 0.5*N^2
Existence of non-quotable strings may crash some Lua programs by maliciously crafted input.
N should be at least 10^6 to make sure non-quotable strings are unrealistically huge.