[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua x XML
- From: "Peter Cawley" <lua@...>
- Date: Fri, 7 Mar 2008 20:48:34 +0000
On 07/03/2008, Mark Hamburg <email@example.com> wrote:
> The downside to Lua is that it doesn't provide any way to guarantee that it
> is executing "straight line" code -- i.e., that there aren't loops that
> could result in a denial of service attack.
You could potentially write code to check that loaded code is
"straight line" by dumping the loaded code and quickly looking over
the opcodes. If there are any JMP by a negative offset, FOR or TFOR,
then it isn't straight line.