projects
/
framework
/
pim
/
calendar-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed008a
)
[issue#] N_SE-35815
2.1b_release
accepted/tizen_2.1/20130425.033130
submit/tizen_2.1/20130424.232823
author
Jeesun Kim
<iamjs.kim@samsung.com>
Tue, 23 Apr 2013 06:55:36 +0000
(15:55 +0900)
committer
Jeesun Kim
<iamjs.kim@samsung.com>
Tue, 23 Apr 2013 06:55:36 +0000
(15:55 +0900)
[problem] Crash when no recurrence_id exception is deleted.
[cause] No handling with NULL data.
[solution] Added NULL check.
native/cal_db_plugin_event.c
patch
|
blob
|
history
diff --git
a/native/cal_db_plugin_event.c
b/native/cal_db_plugin_event.c
index
3418b11
..
8ea63ad
100644
(file)
--- a/
native/cal_db_plugin_event.c
+++ b/
native/cal_db_plugin_event.c
@@
-846,7
+846,13
@@
static int __cal_db_event_add_exdate(calendar_record_h record)
{
return CALENDAR_ERROR_NONE;
}
- DBG("This is exception event and get exdate from parent(id:%d)", event->original_event_id);
+ DBG("This is exception mod event");
+ if (NULL == event->recurrence_id)
+ {
+ ERR("This event should have recurrence_id");
+ return CALENDAR_ERROR_NONE;
+ }
+ DBG("Exdate parent(id:%d) and recurrence_id[%s]", event->original_event_id, event->recurrence_id);
// get exdate from original event.
snprintf(query, sizeof(query), "SELECT exdate FROM %s WHERE id = %d ",