aboutsummaryrefslogtreecommitdiff
path: root/deskutils/kdepim3
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2006-03-15 10:40:56 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2006-03-15 10:40:56 +0000
commitd8716f1a90bcc125e6355dff633a07928fa34f9a (patch)
tree3d388dd16fbdb1fd3fd1253ee74686268ce63453 /deskutils/kdepim3
parent0a4fa21bc3a2344cb5ee3d7747003f6e6928446b (diff)
downloadports-d8716f1a90bcc125e6355dff633a07928fa34f9a.tar.gz
ports-d8716f1a90bcc125e6355dff633a07928fa34f9a.zip
Fix application crashes caused by nonstandard ical files.
Reported by: Anish Mistry <mistry.7@osu.edu> Approved by: portmgr (linimon)
Notes
Notes: svn path=/head/; revision=157208
Diffstat (limited to 'deskutils/kdepim3')
-rw-r--r--deskutils/kdepim3/Makefile2
-rw-r--r--deskutils/kdepim3/files/patch-libkcal_libical_src_libicalss-icalclassify.c26
2 files changed, 27 insertions, 1 deletions
diff --git a/deskutils/kdepim3/Makefile b/deskutils/kdepim3/Makefile
index 03fecec8c56a..758dd162ab70 100644
--- a/deskutils/kdepim3/Makefile
+++ b/deskutils/kdepim3/Makefile
@@ -7,7 +7,7 @@
PORTNAME= kdepim
PORTVERSION= ${KDE_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= deskutils mail news palm kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
diff --git a/deskutils/kdepim3/files/patch-libkcal_libical_src_libicalss-icalclassify.c b/deskutils/kdepim3/files/patch-libkcal_libical_src_libicalss-icalclassify.c
new file mode 100644
index 000000000000..ea51bdeb86a3
--- /dev/null
+++ b/deskutils/kdepim3/files/patch-libkcal_libical_src_libicalss-icalclassify.c
@@ -0,0 +1,26 @@
+--- libkcal/libical/src/libicalss/icalclassify.c.orig Mon Oct 10 17:02:27 2005
++++ libkcal/libical/src/libicalss/icalclassify.c Tue Mar 14 14:58:48 2006
+@@ -221,7 +221,10 @@
+
+ p = icalcomponent_get_first_property(inner,ICAL_ORGANIZER_PROPERTY);
+ if(p!=0){
+- parts->organizer = strdup(icalproperty_get_organizer(p));
++ const char *p_organizer = icalproperty_get_organizer(p);
++ if (p_organizer!=0) {
++ parts->organizer = strdup(p_organizer);
++ }
+ }
+
+ p = icalcomponent_get_first_property(inner,ICAL_SEQUENCE_PROPERTY);
+@@ -231,7 +234,10 @@
+
+ p = icalcomponent_get_first_property(inner,ICAL_UID_PROPERTY);
+ if(p!=0){
+- parts->uid = strdup(icalproperty_get_uid(p));
++ const char *p_uid = icalproperty_get_uid(p);
++ if (p_uid!=0) {
++ parts->uid = strdup(p_uid);
++ }
+ }
+
+ p = icalcomponent_get_first_property(inner,ICAL_RECURRENCEID_PROPERTY);