forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
419260bdb8
commit
09e8017c91
@ -1,3 +1,11 @@
|
||||
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 ;)
|
||||
|
||||
2008-06-18 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* tests/Makefile.am
|
||||
|
@ -441,7 +441,7 @@ gtk_calendar_class_init (GtkCalendarClass *class)
|
||||
g_param_spec_int ("year",
|
||||
P_("Year"),
|
||||
P_("The selected year"),
|
||||
0, G_MAXINT, 0,
|
||||
0, G_MAXINT >> 8, 0,
|
||||
GTK_PARAM_READWRITE));
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user