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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040504000904060602060807
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

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/

--------------040504000904060602060807
Content-Type: text/plain; charset=windows-1251;
 name="patch_len"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch_len"

--- 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;

--------------040504000904060602060807--



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