lua-users home
lua-l archive

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

>>> On my machine (windows vista, sp2, 32 bit) lua 5.1.3 installed via rocks
>>> crashes on with an invalid pattern, e.g.

>>> print("%u",12345))

>> Wasn't there a recent thread on this list on dangers in WinXP? I
>> don't quite remember what was decided...

> valid 'keys' work ok, so it's something related to parsing the template
> which I assume happens in the os library

AFAIR, no template parsing happens at all, and template is passed as
is to the strftime. Which, by standard, may crash on unexpected input.

I remember reading that in next Lua version os.time() would do the parsing.