“POSIX defines a thread-safe alternative gmtime_r, which is similar to the C11 function gmtime_s, except that …” ╯‵Д′)╯彡┻━┻
@bmastenbrook @spun_off Interested in seeing them. This is supposed to make them impossible: http://git.musl-libc.org/cgit/musl/tree/src/time/__secs_to_tm.c?id=1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6#n21 …
-
-
@RichFelker How about this line (“years + 100” has type int)? http://git.musl-libc.org/cgit/musl/tree/src/time/__secs_to_tm.c?id=1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6#n63 … -
@spun_off Hmm, indeed. Looks like that code was adapted from a draft where years had type larger than int.
-
@spun_off Line 58 that computes years also seems to be using wrong types.
-
@richfelker @spun_off yup, those are the two errors -
@bmastenbrook @spun_off Does nsz's proposed fix (changing years to long long, 400 to 400LL) look ok to you? -
@RichFelker It seems alright to me. May I tempt you with a binary you could run day or night that would provide even greater confidence? -
@RichFelker I understand there is some binary compatibility but linking against Musl would also be possible.pic.twitter.com/EYnn8BbPlK
End of conversation
New conversation -
-
-
@richfelker @spun_off spoilers: -67835706662125696 (400*qc_cycles overflows) and 67768037838810496 (years+100 overflows)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.