From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10665 Path: news.gmane.org!.POSTED!not-for-mail From: Hannu Nyman Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] fix parsing of quoted time zone names Date: Mon, 24 Oct 2016 13:12:24 +0300 Message-ID: <20161024101224.3083-1-hannu.nyman@iki.fi> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477303978 32258 195.159.176.226 (24 Oct 2016 10:12:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2016 10:12:58 +0000 (UTC) Cc: Hannu Nyman To: musl@lists.openwall.com Original-X-From: musl-return-10678-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 24 12:12:54 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bycFL-00071v-2t for gllmg-musl@m.gmane.org; Mon, 24 Oct 2016 12:12:47 +0200 Original-Received: (qmail 24354 invoked by uid 550); 24 Oct 2016 10:12:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 24296 invoked from network); 24 Oct 2016 10:12:42 -0000 X-Virus-Scanned: Debian amavisd-new at pp.htv.fi X-Mailer: git-send-email 2.10.1 Xref: news.gmane.org gmane.linux.lib.musl.general:10665 Archived-At: Fix parsing of the < > quoted time zone names. Compare the correct character instead of repeatedly comparing the first character. --- Longer explanation in http://www.openwall.com/lists/musl/2016/10/19/1 src/time/__tz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/__tz.c b/src/time/__tz.c index 8b84b9b..0e0c4ea 100644 --- a/src/time/__tz.c +++ b/src/time/__tz.c @@ -84,7 +84,7 @@ static void getname(char *d, const char **p) int i; if (**p == '<') { ++*p; - for (i=0; **p!='>' && i