Modify

Ticket #2523 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

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:

Description

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

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

Change History

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

patch for boost/date_time/filetime_function.hpp

comment:1 Changed 5 years ago by andysem

  • Severity changed from Showstopper to Problem

Fixed in revision: 49874

comment:2 Changed 5 years ago by andysem

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

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.