Re: [Boost-bugs] [Boost C++ Libraries] #3471: microseconds constructor overflows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3471: microseconds constructor overflows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-21 12:43:33

#3471: microseconds constructor overflows
 Reporter: andysem | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: date_time
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: microseconds |

Comment(by anonymous):

 In my opinion, this is definitely a bug. I'd take it one step further:
 the presence of this simple integer-overflow bug suggests that there may
 be integer arithmetic bugs throughout the date_time library. An expert in
 integer arithmetic should review the entire date_time library looking for
 similar bugs.

 Note that the suggested solution of adding parentheses won't work in many
 common cases, such as when this function is called from the nanoseconds

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

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