[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: crash on date
- From: Alexander Gladysh <agladysh@...>
- Date: Fri, 11 Dec 2009 20:19:28 +0300
>>> On my machine (windows vista, sp2, 32 bit) lua 5.1.3 installed via rocks
>>> crashes on os.data with an invalid pattern, e.g.
>> Wasn't there a recent thread on this list on os.date 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.