Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Oct 2014 02:05:25 +0400
From:      Andrey Chernov <ache@freebsd.org>
To:        Pedro Giffuni <pfg@freebsd.org>
Cc:        svn-src-head@freebsd.org, Antoine Brodin <antoine@freebsd.org>, David Carlier <david.carlier@hardenedbsd.org>
Subject:   Re: New bug introduced in strptime (was Re: svn commit: r272273 - head/lib/libc/stdtime)
Message-ID:  <542C7AA5.80708@freebsd.org>
In-Reply-To: <542C5DCC.8060406@freebsd.org>
References:  <201409282120.s8SLKLJs070469@svn.freebsd.org> <CAALwa8mOHXCe7xq44U6sNdSs0Arf_8hC9JQLqP4Y4=1%2Bp4spOg@mail.gmail.com> <542C5DCC.8060406@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 02.10.2014 0:02, Pedro Giffuni wrote:
> Hello;
> 
> I can reproduce this. On FreeBSD 9.1 (no patch):

It was the bug in the original patch. I just miss it. Fix attached.

-- 
http://ache.vniz.net/

[-- Attachment #2 --]
--- strptime.c.bak	2014-10-02 01:44:39.000000000 +0400
+++ strptime.c	2014-10-02 01:59:20.000000000 +0400
@@ -342,6 +342,7 @@
 			if (i == asizeof(tptr->weekday))
 				return (NULL);
 
+			buf += len;
 			tm->tm_wday = i;
 			flags |= FLAG_WDAY;
 			break;
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?542C7AA5.80708>