aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-10-27 12:22:05 +0300
committerJo-Philipp Wich <jo@mein.io>2016-10-31 12:55:27 +0100
commit671cb35880308404a17c430c4b3b13dd506a5671 (patch)
treeb0f6b11bb0e733af81ae1b798c922cb312aa7bb1 /toolchain/musl/patches
parent53b43e65e7ed9c68dbb3594f3f5b5653287c07fb (diff)
downloadupstream-671cb35880308404a17c430c4b3b13dd506a5671.tar.gz
upstream-671cb35880308404a17c430c4b3b13dd506a5671.tar.bz2
upstream-671cb35880308404a17c430c4b3b13dd506a5671.zip
musl: fix parsing of quoted time zone names
fix parsing of the < > quoted time zone names. Compare the correct character instead of repeatedly comparing the first character. Patch has been submitted to 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> [Jo-Philipp Wich: move references into commit message, shorten title prefix] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'toolchain/musl/patches')
-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 {