[Boost-bugs] [Boost C++ Libraries] #8450: Missing casts in c_local_time_adjustor.hpp lead to year 2038 problem

Subject: [Boost-bugs] [Boost C++ Libraries] #8450: Missing casts in c_local_time_adjustor.hpp lead to year 2038 problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-16 13:49:39


#8450: Missing casts in c_local_time_adjustor.hpp lead to year 2038 problem
---------------------------------+------------------------------------------
 Reporter: raad@… | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 The duration_rep_type, hour_type and min_type values are not cast to
 std::time_t, so if they are 32-bit and std::time_t is 64-bit, std::time_t
 t2 becomes negative for dates after year 2038 and c_time::localtime throws
 an exception.

 With the casts to std::time_t in the attached patch, no exception is
 thrown.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8450>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC