summaryrefslogtreecommitdiff
path: root/src/thread/thrd_join.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-10-08 23:30:42 +0000
committerRich Felker <dalias@aerifal.cx>2015-10-08 23:30:42 +0000
commitc82d3bada30cb27e14abda7859da5d2e784830ff (patch)
tree080b81ab7a2c1036c37bb07b46886c40c961fd52 /src/thread/thrd_join.c
parent7b9f57f207b51132f188f750161953b7baf32154 (diff)
downloadmusl-c82d3bada30cb27e14abda7859da5d2e784830ff.tar.gz
fix integer overflows in time_t/struct tm conversion code
as found and reported by Brian Mastenbrook, the expressions 400*qc_cycles and years+100 in __secs_to_tm were both subject to integer overflow for extreme values of the input t. this patch by Szabolcs Nagy fixes the code by switching to larger types, and matches the original intent I had in mind when writing this code.
Diffstat (limited to 'src/thread/thrd_join.c')
0 files changed, 0 insertions, 0 deletions