• R
    fix strftime handling of out-of-range struct tm fields · 8d93cb57
    Rich Felker 提交于
    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.
    8d93cb57
strftime.c 5.6 KB