[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luac and loadstring hang
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 16 Nov 2009 10:19:51 -0200
> The string below, when fed to loadstring, causes the interpreter to
> hang. (Same behavior if this string is saved to file and then fed to
> luac). Lua 5.1.4, Windows XP SP2.
>
> -- test begin --
> local str =
> "\27\76\117\97\81\0\1\4\4\4\8\0\7\0\0\0\64\49\46\108\117\97" ..
> "\0\0\0\0\0\0\0\0\0\0\0\2\2\3\0\0\0\1\0\0\14\0\0\0\30\0\128" ..
> "\0\1\0\0\0\3\0\0\0\0\0\0\23\64\0\0\0\0\3\0\0\0\1\0\0\0\2\0" ..
> "\0\0\2\0\0\0\1\0\0\0\2\0\0\0\102\0\1\0\0\0\2\0\0\0\0\0\0\0"
>
> loadstring(str)
changing the last line to print(loadstring(str)) gives me this:
nil binary string: bad constant in precompiled chunk
but in an older machine it did hang. (Both are Linux machines.)