gtk+ r20452 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20452 - in trunk: . gtk
- Date: Wed, 18 Jun 2008 15:42:27 +0000 (UTC)
Author: mitch
Date: Wed Jun 18 15:42:27 2008
New Revision: 20452
URL: http://svn.gnome.org/viewvc/gtk+?rev=20452&view=rev
Log:
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 ;)
Modified:
trunk/ChangeLog
trunk/gtk/gtkcalendar.c
Modified: trunk/gtk/gtkcalendar.c
==============================================================================
--- trunk/gtk/gtkcalendar.c (original)
+++ trunk/gtk/gtkcalendar.c Wed Jun 18 15:42:27 2008
@@ -441,7 +441,7 @@
g_param_spec_int ("year",
P_("Year"),
P_("The selected year"),
- 0, G_MAXINT, 0,
+ 0, G_MAXINT >> 8, 0,
GTK_PARAM_READWRITE));
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]