From owner-freebsd-stable Wed Sep 22 10:23:42 1999 Delivered-To: freebsd-stable@freebsd.org Received: from chronis.pobox.com (chronis.pobox.com [208.210.124.49]) by hub.freebsd.org (Postfix) with ESMTP id E0D1715461 for ; Wed, 22 Sep 1999 10:23:34 -0700 (PDT) (envelope-from scott@chronis.pobox.com) Received: by chronis.pobox.com (Postfix, from userid 1001) id D215B9B46; Wed, 22 Sep 1999 13:23:33 -0400 (EDT) Date: Wed, 22 Sep 1999 13:23:33 -0400 From: scott To: Sheldon Hearn Cc: freebsd-stable@freebsd.org Subject: Re: strptime bug? Message-ID: <19990922132333.A1517@chronis.pobox.com> Mail-Followup-To: Sheldon Hearn , freebsd-stable@freebsd.org References: <19990922113633.A15733@chronis.pobox.com> <15664.938019529@axl.noc.iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.7i In-Reply-To: <15664.938019529@axl.noc.iafrica.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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