]> Pileus Git - ~andy/gtk/commit
set the maximum of the "year" property to G_MAXINT >> 8 instead of
authorMichael Natterer <mitch@imendio.com>
Wed, 18 Jun 2008 15:42:27 +0000 (15:42 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 18 Jun 2008 15:42:27 +0000 (15:42 +0000)
commit09e8017c91305543a9380737a72a060704623892
treea26fa783caf9f446058ae0189afa0193c296f5eb
parent419260bdb85b30e100187e7c268c12e648f9e698
set the maximum of the "year" property to G_MAXINT >> 8 instead of

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcalendar.c: set the maximum of the "year" property to
G_MAXINT >> 8 instead of G_MAXINT to fix overflows in internal
calculations which in turn caused writing beyond the boundaries of
the calendar->day_month[] and day[] arrays which in turn caused a
SEGV. This limits the lifetime of GTK+ to the year 8,388,608 ;)

svn path=/trunk/; revision=20452
ChangeLog
gtk/gtkcalendar.c