From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8522 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: out of range struct tm fields in strftime Date: Sun, 20 Sep 2015 12:36:29 -0400 Message-ID: <20150920163629.GL17773@brightrain.aerifal.cx> References: <20150920124450.GA10551@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1442767010 5515 80.91.229.3 (20 Sep 2015 16:36:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Sep 2015 16:36:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8534-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 20 18:36:46 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1ZdhbY-0007hj-Dr for gllmg-musl@m.gmane.org; Sun, 20 Sep 2015 18:36:44 +0200 Original-Received: (qmail 6008 invoked by uid 550); 20 Sep 2015 16:36:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5981 invoked from network); 20 Sep 2015 16:36:42 -0000 Content-Disposition: inline In-Reply-To: <20150920124450.GA10551@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8522 Archived-At: On Sun, Sep 20, 2015 at 02:44:50PM +0200, Szabolcs Nagy wrote: > out of range tm fields should not be treated as ub > as noted in the thread > http://sourceware.org/ml/libc-alpha/2015-09/msg00546.html > > i have a patch but there might be simpler approaches Wouldn't it be less invasive to just make some small changes like putting a U on some of the constants so that the arithmetic happens as unsigned? Rich