GNOME Bugzilla – Bug 243369
libical uses mktime on times outside of time_t range
Last modified: 2006-08-08 03:55:54 UTC
Several places in icaltime.c use mktime() for its side effects (like figuring out what day of the week a given date was on). But mktime() is not defined for dates outside time_t range, and libical doesn't even check its return value. This causes problems with things like Exchange/Outlook timezones, which have DTSTARTs of 1601-01-01 (the Windows equivalent of 1970-01-01). As a result, libical ends up using stack garbage for a "day of week" value. I don't know if it actually ends up putting the daylight/standard time shifts on the wrong days or not. I only noticed the problem because valgrind complains.
*** This bug has been marked as a duplicate of 231662 ***
The bug this was marked a duplicate of is assigned to Calendar. Should it be reassigned to libical?
Set component to libical under Evolution Data Server where they should belong to.