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>
This commit is contained in:
parent
53b43e65e7
commit
671cb35880
11
toolchain/musl/patches/400-fix_quoted_timezone.patch
Normal file
11
toolchain/musl/patches/400-fix_quoted_timezone.patch
Normal file
@ -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 {
|
Loading…
Reference in New Issue
Block a user