I hate ".dup"

Steven Schveighoffer schveiguy at yahoo.com
Tue Mar 24 09:32:57 PDT 2009


On Tue, 24 Mar 2009 12:26:29 -0400, Qian Xu <quian.xu at stud.tu-ilmenau.de>  
wrote:

> Steven Schveighoffer wrote:
>>
>> Coincidentally, someone else discovered a buffer-overrun bug in
>> tango.text.convert.TimeStamp, see
>> http://www.dsource.org/projects/tango/forums/topic/704
>>
>> Please try downloading the latest trunk code and see if your code still
>> fails.
>>
>> You should not have to .dup the string, if you do, that is a bug.
>>
>> -Steve
>
> TimeStamp.iso8601(..) does not call the parse() function.

The bug was in parseInt.  Please try it.

-Steve


More information about the Digitalmars-d-learn mailing list