diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-10-14 18:58:15 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-10-14 18:58:15 -0400 |
commit | 8d93cb57754f1f81f8e15bb74afd1725cead45c2 (patch) | |
tree | b7a3a82bcdc031f34180c168726cd08e3ee7600b /src/time/__asctime.c | |
parent | 6fef8cafbd0f6f185897bc87feb1ff66e2e204e1 (diff) | |
download | musl-8d93cb57754f1f81f8e15bb74afd1725cead45c2.tar.gz |
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.
Diffstat (limited to 'src/time/__asctime.c')
0 files changed, 0 insertions, 0 deletions