Opened 9 years ago

Closed 9 years ago

#2523 closed Bugs (fixed)

Windows FILETIMEs before 1970 are projected into the future

Reported by: Marc Halbruegge <marc.halbruegge@…> Owned by: az_sw_dude
Milestone: Boost 1.38.0 Component: date_time
Version: Boost 1.37.0 Severity: Problem
Keywords: ms windows filetime Cc:


When the file time is before 1970 (possible e.g. in ntfs file systems), the conversion produces an integer overflow, projecting the file time some 60,000 years into the future.

Unfortunately, this causes bad_date exceptions to be thrown later on

Attachments (1)

filetime_functions.hpp.patch (6.0 KB) - added by Marc Halbruegge <marc.halbruegge@…> 9 years ago.
patch for boost/date_time/filetime_function.hpp

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Marc Halbruegge <marc.halbruegge@…>

patch for boost/date_time/filetime_function.hpp

comment:1 Changed 9 years ago by andysem

  • Severity changed from Showstopper to Problem

Fixed in revision: 49874

comment:2 Changed 9 years ago by andysem

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain az_sw_dude.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.