Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4943 closed Feature Requests (duplicate)

easy overflow in posix_time::microseconds

Reported by: gast128@… Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

we encountered an overflow in posix_time::microseconds:

about 40 years (1970-2010) const int64 n = 1267195987000000; boost::posix_time::microseconds td(n); overflow

The overflow is easy explainable since date_time::subsecond_duration first multiplies it causing the overflow and then divides by 1000000.

There are already multiple posts spended on this.

Change History (3)

comment:1 by Vicente Botet <vicente.botet@…>, 12 years ago

Resolution: duplicate
Status: newclosed

So why you did a new one? Post the ML is you want #3471 ticket to be closed

Duplicate Ticket #3471

comment:2 by gast128, 12 years ago

I couldn't find the other one. This whole trac system pops with "Error: Bad Request", "Missing or invalid form token. Do you have cookies enabled?" with Internet Exploder 8. And what is a ML?

Anyhow 3471 seems not be solved in 1.45.

comment:3 by Vicente Botet <vicente.botet@…>, 12 years ago

I don't know about any cookies I needed to install. Sorry, ML stands for mailing list.

Note: See TracTickets for help on using tickets.