evolution-exchange r1697 - in trunk: . mail
- From: abharath svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-exchange r1697 - in trunk: . mail
- Date: Tue, 22 Jul 2008 11:21:53 +0000 (UTC)
Author: abharath
Date: Tue Jul 22 11:21:53 2008
New Revision: 1697
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1697&view=rev
Log:
2008-07-22 Bharath Acharya <abharath novell com>
** Fixes part of bug #544115
* mail/mail-stub-exchange.c:
* (mse_get_folder_online_sync_updates):
Added a valid check to prevent the crash caused by DB Summary merge.
Modified:
trunk/ChangeLog
trunk/mail/mail-stub-exchange.c
Modified: trunk/mail/mail-stub-exchange.c
==============================================================================
--- trunk/mail/mail-stub-exchange.c (original)
+++ trunk/mail/mail-stub-exchange.c Tue Jul 22 11:21:53 2008
@@ -578,6 +578,15 @@
seq = GPOINTER_TO_UINT (value);
g_static_rec_mutex_lock (&g_changed_msgs_mutex);
+
+ /* Camel DB Summary changes are not fetching all the messages at start-up.
+ Use this else it would crash badly.
+ */
+ if (index >= mfld->messages->len) {
+ g_static_rec_mutex_unlock (&g_changed_msgs_mutex);
+ return;
+ }
+
mmsg = mfld->messages->pdata[index];
if (mmsg->seq != seq) {
for (i = 0; i < mfld->messages->len; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]