[evolution-data-server/gnome-3-16] [e-cal-recur.c] Do not write out of bounds of the weekdays array
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-16] [e-cal-recur.c] Do not write out of bounds of the weekdays array
- Date: Thu, 6 Aug 2015 12:48:59 +0000 (UTC)
commit 9260aada355b7b1d55fb77789d1a5bddd9d3dd07
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 6 14:44:51 2015 +0200
[e-cal-recur.c] Do not write out of bounds of the weekdays array
calendar/libecal/e-cal-recur.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/calendar/libecal/e-cal-recur.c b/calendar/libecal/e-cal-recur.c
index b8857d2..142380d 100644
--- a/calendar/libecal/e-cal-recur.c
+++ b/calendar/libecal/e-cal-recur.c
@@ -1947,6 +1947,9 @@ cal_obj_initialize_recur_data (RecurData *recur_data,
weekday = GPOINTER_TO_INT (elem->data);
recur_data->weekdays[weekday] = 1;
elem = elem->next;
+ /* the second element is week_num, skip it */
+ if (elem)
+ elem = elem->next;
}
/* Create an array of hours from byhour for fast lookup. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]