[source] musl: fix parsing of quoted time zone names
LEDE Commits
lede-commits at lists.infradead.org
Mon Oct 31 04:55:33 PDT 2016
jow pushed a commit to source.git, branch master:
https://git.lede-project.org/671cb35880308404a17c430c4b3b13dd506a5671
commit 671cb35880308404a17c430c4b3b13dd506a5671
Author: Hannu Nyman <hannu.nyman at iki.fi>
AuthorDate: Thu Oct 27 12:22:05 2016 +0300
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 at iki.fi>
[Jo-Philipp Wich: move references into commit message, shorten title prefix]
Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
toolchain/musl/patches/400-fix_quoted_timezone.patch | 11 +++++++++++
1 file changed, 11 insertions(+)
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 0000000..79afa4a
--- /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 {
More information about the lede-commits
mailing list