path: root/arch/x86_64/bits/errno.h
diff options
authorSamuel Holland <>2020-02-22 16:01:13 -0600
committerRich Felker <>2020-03-21 12:47:09 -0400
commit33338ebc853d37c80f0f236cc7a92cb0acc6aace (patch)
treeea0bdec858a89dbb17ec830a35ac94037e5dd566 /arch/x86_64/bits/errno.h
parent8e452abae67db445fb6c3e37cd566c4788c2e8f3 (diff)
fix parsing offsets after long timezone names
TZ containg a timezone name with >TZNAME_MAX characters currently breaks musl's timezone parsing. getname() stops after TZNAME_MAX characters. getoff() will consume no characters (because the next character is not a digit) and incorrectly return 0. Then, because there are remaining alphabetic characters, __daylight == 1, and dst_off == -3600. getname() must consume the entire timezone name, even if it will not fit in d/__tzname, so when it returns, s points to the offset digits.
Diffstat (limited to 'arch/x86_64/bits/errno.h')
0 files changed, 0 insertions, 0 deletions