Subject: [Boost-bugs] [Boost C++ Libraries] #1903: [date_time] - 1.34+ c_local_adjustor derefs null pointer for dates >2038
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-08 13:55:09
#1903: [date_time] - 1.34+ c_local_adjustor derefs null pointer for dates >2038
--------------------------------------------------+-------------------------
Reporter: Jeff Flinn <jeffrey.flinn_at_[hidden]> | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: date_time
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
// utc_test.cpp : Defines the entry point for the console application.
//
#define BOOST_DATE_TIME_NO_LIB
#include "boost/date_time/posix_time/posix_time.hpp"
#include "boost/date_time/local_time_adjustor.hpp"
#include "boost/date_time/c_local_time_adjustor.hpp"
int main()
{
using namespace boost::posix_time;
using namespace boost::gregorian;
//This local adjustor depends on the machine TZ settings-- highly
dangerous!
typedef boost::date_time::c_local_adjustor<ptime> local_adj;
ptime t10(date(2040,Jan,1), hours(7));
ptime t11 = local_adj::utc_to_local(t10);
return 0;
}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1903>
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:49:57 UTC