Opened 14 years ago

Closed 14 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:

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 (1)

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

Download all attachments as: .zip

Change History (3)

by Marc Halbruegge <marc.halbruegge@…>, 14 years ago

patch for boost/date_time/filetime_function.hpp

comment:1 by Andrey Semashev, 14 years ago

Severity: ShowstopperProblem

Fixed in revision: 49874

comment:2 by Andrey Semashev, 14 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.