After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 243369 - libical uses mktime on times outside of time_t range
libical uses mktime on times outside of time_t range
Status: RESOLVED DUPLICATE of bug 231662
Product: evolution-data-server
Classification: Platform
Component: libical
1.4.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2003-05-20 13:07 UTC by Dan Winship
Modified: 2006-08-08 03:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2003-05-20 13:07:24 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.
Comment 1 Dan Winship 2003-06-21 15:25:05 UTC

*** This bug has been marked as a duplicate of 231662 ***
Comment 2 Richard Zach 2003-10-19 17:55:16 UTC
The bug this was marked a duplicate of is assigned to Calendar. Should
it be reassigned to libical?
Comment 3 Harish Krishnaswamy 2006-08-08 03:55:54 UTC
Set component to libical under Evolution Data Server where they should belong to.