From owner-svn-src-head@FreeBSD.ORG Wed Oct 1 22:05:38 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BDF7B76 for ; Wed, 1 Oct 2014 22:05:38 +0000 (UTC) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EEDD1F7 for ; Wed, 1 Oct 2014 22:05:37 +0000 (UTC) Received: by mail-la0-f44.google.com with SMTP id gb8so1311256lab.3 for ; Wed, 01 Oct 2014 15:05:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=mCyGT5GkfZCWGO179W8jGCxGbXNEZIs+N1kBgGEbY2k=; b=JfQ4UmvBkAGmU7EjQSSPVDPjXetTmdtw8BqRAjoQDEvBvgp8Oaui6auVKekn6W1ygV dTBRGEjq3IvnbC6Z713xh5Ln3EyGFhosY/yHe8C/Nme1LwUspUOVw6r4XfG4J0LSHwgx mJOkNQWmsgF2glcxkVjM+qkbeVuu9TOf62TuJt1dAxFSH31MkEgkwrU8wPrB2J/YuAXh 9Oc1F9v1BWNZPv+s7IUHSEHhX5spjlqve5h8dFRSuoH6QwlHS8Y7TGGiHvnibrZ4vRCO AKTYMxXfeuDNbQy2jOtN2zGurGfkcy4hw7RRBYEbpX/zJAH67D4IQ4qqyfijZ1Olto/r Nu1w== X-Gm-Message-State: ALoCoQld57UwU6wdj56iUU1eDzXyXJ+fynGsmz7eiYic/icfNwttzDxWifPXjlGpEvyBZi4URxFA X-Received: by 10.112.24.104 with SMTP id t8mr55670872lbf.46.1412201129713; Wed, 01 Oct 2014 15:05:29 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id cm9sm855535lbb.39.2014.10.01.15.05.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Oct 2014 15:05:28 -0700 (PDT) Message-ID: <542C7AA5.80708@freebsd.org> Date: Thu, 02 Oct 2014 02:05:25 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Pedro Giffuni Subject: Re: New bug introduced in strptime (was Re: svn commit: r272273 - head/lib/libc/stdtime) References: <201409282120.s8SLKLJs070469@svn.freebsd.org> <542C5DCC.8060406@freebsd.org> In-Reply-To: <542C5DCC.8060406@freebsd.org> Content-Type: multipart/mixed; boundary="------------040504000904060602060807" Cc: svn-src-head@freebsd.org, Antoine Brodin , David Carlier X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2014 22:05:38 -0000 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--