diff options
author | Daniel Sabogal <dsabogal@ufl.edu> | 2016-11-02 22:29:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-11-07 13:00:54 -0500 |
commit | bc1e7731cee963e422575f81048792f4d5db9641 (patch) | |
tree | 8433b8861dad5d43307ef5000e150a8a594a1a47 /src/math/truncl.c | |
parent | 5ffe515ca485c8e6e57cd5acda6bc6008f85660c (diff) | |
download | musl-bc1e7731cee963e422575f81048792f4d5db9641.tar.gz musl-bc1e7731cee963e422575f81048792f4d5db9641.tar.xz musl-bc1e7731cee963e422575f81048792f4d5db9641.zip |
fix integer overflow of tm_year in __secs_to_tm
the overflow check for years+100 did not account for the extra year computed from the remaining months. instead, perform this check after obtaining the final number of years.
Diffstat (limited to 'src/math/truncl.c')
0 files changed, 0 insertions, 0 deletions