From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4276 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: zoneinfo file parsing in __tz.c Date: Sun, 24 Nov 2013 11:06:16 +0000 Message-ID: <5291DDA8.7080702@skarnet.org> References: <20131121013056.GA2128@brightrain.aerifal.cx> <528DD529.4030408@skarnet.org> <20131121163911.GP24286@brightrain.aerifal.cx> <528E5EB9.1080400@skarnet.org> <20131121194459.GS24286@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385291186 23103 80.91.229.3 (24 Nov 2013 11:06:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Nov 2013 11:06:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4280-gllmg-musl=m.gmane.org@lists.openwall.com Sun Nov 24 12:06:27 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VkXWC-0002GN-0h for gllmg-musl@plane.gmane.org; Sun, 24 Nov 2013 12:06:24 +0100 Original-Received: (qmail 1981 invoked by uid 550); 24 Nov 2013 11:06:21 -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 1973 invoked from network); 24 Nov 2013 11:06:21 -0000 X-SourceIP: 89.100.252.69 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <20131121194459.GS24286@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4276 Archived-At: While working on leap seconds support, I find the following line in do_tzset(), that's supposed to skip the non-supported part of the zoneinfo binary format: size_t skip = zi_dotprod(zi, VEC(1,1,8,5,6,1), 6); but zi is the start of the mapped file, and the various numbers indicating the sections' length are supposed to be at zi+20, not zi. Is that a bug or have I missed something ? -- Laurent