diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-03-16 03:18:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-05-23 14:36:25 -0700 |
commit | f8591f8049a401c898737ca843d87872b93e6ccc (patch) | |
tree | 7e2072a606a199ae8646d8e9a00f2d905f13e8d3 /ChangeLog | |
parent | 94c7d826c97ec1ae6ced9f83fe1fe6cfcc235edb (diff) | |
download | glibc-f8591f8049a401c898737ca843d87872b93e6ccc.tar.gz glibc-f8591f8049a401c898737ca843d87872b93e6ccc.tar.xz glibc-f8591f8049a401c898737ca843d87872b93e6ccc.zip |
mktime: avoid signed integer overflow
* time/mktime.c (__mktime_internal): Do not mishandle the case where diff == INT_MIN.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index e795eca881..71045dbd47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2012-05-23 Paul Eggert <eggert@cs.ucla.edu> + mktime: avoid signed integer overflow + * time/mktime.c (__mktime_internal): Do not mishandle the case + where diff == INT_MIN. + mktime: simplify computation of average * time/mktime.c (ranged_convert): Use new time_t_avg function instead of rolling our own (probably-slower) code. |