fix strftime handling of out-of-range struct tm fields
strftime results are unspecified in this case, but should not invoke undefined behaviour. tm_wday, tm_yday, tm_mon and tm_year fields were used in signed int arithmetic that could overflow. based on patch by Szabolcs Nagy.
Showing
想要评论请 注册 或 登录