aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-11-01 11:16:27 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2016-11-01 11:16:27 +0200
commit55d5f26bcd977f6323daec9e85cdbe599de8b31f (patch)
tree61be25e1d213b076d20a85c1ec3ab2c1a440aa5b
parentcabb0c506526fe468e4aa985086e50c440192122 (diff)
downloadmaster-187ad058-55d5f26bcd977f6323daec9e85cdbe599de8b31f.tar.gz
master-187ad058-55d5f26bcd977f6323daec9e85cdbe599de8b31f.tar.bz2
master-187ad058-55d5f26bcd977f6323daec9e85cdbe599de8b31f.zip
musl: fix quoted time zone name handling
Fix parsing and handling of the < > quoted time zone names: Compare the correct character instead of repeatedly comparing the first character. Patch has been submitted to musl upstream as http://www.openwall.com/lists/musl/2016/10/24/3 Longer explanation in http://www.openwall.com/lists/musl/2016/10/19/1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
-rw-r--r--toolchain/musl/patches/400-fix_quoted_timezone.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/musl/patches/400-fix_quoted_timezone.patch b/toolchain/musl/patches/400-fix_quoted_timezone.patch
new file mode 100644
index 0000000000..79afa4a63b
--- /dev/null
+++ b/toolchain/musl/patches/400-fix_quoted_timezone.patch
@@ -0,0 +1,11 @@
+--- a/src/time/__tz.c
++++ b/src/time/__tz.c
+@@ -87,7 +87,7 @@
+ int i;
+ if (**p == '<') {
+ ++*p;
+- for (i=0; **p!='>' && i<TZNAME_MAX; i++)
++ for (i=0; (*p)[i]!='>' && i<TZNAME_MAX; i++)
+ d[i] = (*p)[i];
+ ++*p;
+ } else {