[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] patch-lua-5.1.3
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 11 May 2008 11:38:12 -0300
> One note about the bugs page -- the first proof-of-concept code I
> wrote to blow the C stack in x86 Lua was quite verbose and unclear.
> Perhaps the bugs page could use the simpler and clearer:
>
> a = '\27Lua\81\0\1\4\4\4\8\0'
> b = '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\2\0\0\0\30\0\0\0\30\0\0\0\0\0\0\0\1\0\0\0'
> while true do b=b..b; loadstring(a..b) end
>
> Not that it matters much; I only bring it up because this code is much
> smaller, and my previous code is a bit embarrassing to look at. :)
With the bug fixed, this code trashed my machine while trying to create
a string with 600MBytes. I still prefer the old one.
-- Roberto