aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-13 17:37:40 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-13 17:37:40 +0800
commit5a89dabc7cfff27beb866f4e10768f21629bbba4 (patch)
treecde0d3cc056c6d6daba87b4957ee534f3b1e9209 /calendar
parente7c808ae155ad50c9fd7c876c744054ab2be2a15 (diff)
downloadgsoc2013-evolution-5a89dabc7cfff27beb866f4e10768f21629bbba4.tar.gz
gsoc2013-evolution-5a89dabc7cfff27beb866f4e10768f21629bbba4.tar.zst
gsoc2013-evolution-5a89dabc7cfff27beb866f4e10768f21629bbba4.zip
add some array bounds checking as an attempt to isolate the crash in
2004-05-13 Not Zed <NotZed@Ximian.com> * gui/e-week-view-event-item.c (e_week_view_event_item_draw): add some array bounds checking as an attempt to isolate the crash in #57644. svn path=/trunk/; revision=25896
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/e-week-view-event-item.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 96b56aac6c..5b47fe211d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-13 Not Zed <NotZed@Ximian.com>
+
+ * gui/e-week-view-event-item.c (e_week_view_event_item_draw): add
+ some array bounds checking as an attempt to isolate the crash in
+ #57644.
+
2004-05-11 Not Zed <NotZed@Ximian.com>
* gui/migration.c (migrate_calendars, migrate_tasks): add GError
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 0bc43e12ef..22f33ebe43 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -250,8 +250,13 @@ e_week_view_event_item_draw (GnomeCanvasItem *canvas_item,
if (wveitem->event_num == -1 || wveitem->span_num == -1)
return;
+ g_return_if_fail(wveitem->event_num < week_view->events->len);
+
event = &g_array_index (week_view->events, EWeekViewEvent,
wveitem->event_num);
+
+ g_return_if_fail(event->spans_index + wveitem->span_num < week_view->spans->len);
+
span = &g_array_index (week_view->spans, EWeekViewEventSpan,
event->spans_index + wveitem->span_num);
ommit/x11-fm?id=b204eefd9d12857a2e384c59753552fe8286fae5'>Bump PORTREVISIONS for all ports that depend on atk or pango to ease in themarcus2004-11-087-4/+7 * Presenting GNOME 2.8 for FreeBSD (2.8.1 to be exact).marcus2004-11-087-106/+35 * - Update to 0.11.52pav2004-11-052-6/+12 * Update to version 1.50markus2004-11-038-68/+88 * Upgrade to version 2.1.4.olgeni2004-10-314-3/+22 * - Update to 0.72pav2004-10-203-4/+8 * - Reset maintainershippav2004-10-201-1/+1 * - Bump portrevision for fox shlib version raisepav2004-10-201-1/+1 * Fix the build on 4.X.marcus2004-10-131-4/+10 * Fix build, and chase new libexif.marcus2004-10-132-1/+13 * Increase USE_GCC to 3.4 for those ports which compile with it.kris2004-09-301-1/+1 * Fix build with gcc 3.4arved2004-09-031-0/+10 * Upgrade to version 2.1.3.olgeni2004-08-283-6/+5 * update to 0.70oliver2004-08-264-143/+157 * This port works, remove IGNORE/EXPIRATION_DATE/DEPRECATED.anders2004-08-242-10/+4 * Update to 2.8.5 and fix compilation with gcc 3.4.linimon2004-08-222-3/+3 * - Update to 0.0.9pav2004-08-166-27/+30 * Unbreak build of TkDesk on CURRENT.keramida2004-07-301-0/+11 * Remove unnecessary directories from the plist. I'm notadamw2004-07-291-13/+0 * Move a bunch of now unique stuff out of gnomehier and intoadamw2004-07-282-0/+23 * Update to 1.40sem2004-07-2510-62/+114 * update to xfce4-4.0.6oliver2004-07-195-6/+8 * - Portlintpav2004-07-121-1/+1 * Apply a big libtool patch to allow porters to use the libtool installed bymarcus2004-07-103-3/+3 * Use the new GConf handling policy, this will be required for GNOME 2.7/2.8 ormezz2004-07-08