From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/158 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: integer parser fixed/replaced thanks to cluts Date: Thu, 14 Jul 2011 01:24:05 -0400 Message-ID: <20110714052405.GJ16618@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310621619 20439 80.91.229.12 (14 Jul 2011 05:33:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 05:33:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-242-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 14 07:33:34 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QhEYF-0002A7-GN for gllmg-musl@lo.gmane.org; Thu, 14 Jul 2011 07:33:31 +0200 Original-Received: (qmail 18098 invoked by uid 550); 14 Jul 2011 05:33:30 -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 18090 invoked from network); 14 Jul 2011 05:33:30 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:158 Archived-At: Thanks to cluts' numeric tests, I've tracked down the errors in musl's integer parsing routines and rewritten them as wrappers around a unified core parser that can handle char-by-char or whole-string input (or any mix). Eventually scanf will also use the new parser, reducing code size and most likely improving correctness. I also plan to write a new floating point parser based on the same principles, which will facilitate adding the currently-missing wcstof/wcstod/wcstold functions, and at the same time I hope to address inexactness issues. Rich