[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: dostring and precompiled code
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 6 Feb 2001 00:53:38 -0200
>I'm not sure if I understand you right, but malicious code is definitely able
>to generate a segfault. In fact, the virtual machine just assumes "correct"
>code. It will happy execute a pushnil(999999).
>> | if (*s == '\27') /* binary files start with ESC... */
>> | lua_error(L, "`dostring' cannot run pre-compiled code");
>And if you keep it in, better make that '\33' ;-)
Oops, this is a bug then. It's 27 not '\27'. Thanks.
So, after all dostring in 4.0 does run precompiled code!!