lua-users home
lua-l archive

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


>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).

Quite right.

>> |  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!!
--lhf