Date: Wed, 22 Sep 1999 13:23:33 -0400 From: scott <scott@chronis.pobox.com> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: freebsd-stable@freebsd.org Subject: Re: strptime bug? Message-ID: <19990922132333.A1517@chronis.pobox.com> In-Reply-To: <15664.938019529@axl.noc.iafrica.com> References: <19990922113633.A15733@chronis.pobox.com> <15664.938019529@axl.noc.iafrica.com>
index | next in thread | previous in thread | raw e-mail
It won't help... the problem is that all the loops that look like this
for (i = 0; *buf != 0 && isdigit((unsigned char)*buf); buf++)
in strptime.c.
These loops do not terminate whenever the requested format is followed
by a digit in the input buffer. for example,
strptime("199908", "%Y%m", &t)
or
strptime("199910", "%Y10", &t)
will trigger the problem.
thanks for the pointer to searching the pr's though, didn't know about
that.
scott
On Wed, Sep 22, 1999 at 06:58:49PM +0200, Sheldon Hearn wrote:
>
>
> On Wed, 22 Sep 1999 11:36:33 -0400, scott wrote:
>
> > I have a number of dates in YYYYMMDD format (eg 19990922), and am
> > using strptime to parse them, but it's not working:
>
> Could you try the patch on PR 10131 ?
>
> Thanks,
> Sheldon.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990922132333.A1517>
