aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/kdepim4
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-03-15 18:40:56 +0800
committerlofi <lofi@FreeBSD.org>2006-03-15 18:40:56 +0800
commitc47b722e65171e12d2850f350c81022d20e7540c (patch)
tree9c25870120bc9d19475dcbf514e90f1e1616616d /deskutils/kdepim4
parent6f424aa33b65a3b95a33b7c0b67b6ddc2b6bc135 (diff)
downloadfreebsd-ports-gnome-c47b722e65171e12d2850f350c81022d20e7540c.tar.gz
freebsd-ports-gnome-c47b722e65171e12d2850f350c81022d20e7540c.tar.zst
freebsd-ports-gnome-c47b722e65171e12d2850f350c81022d20e7540c.zip
Fix application crashes caused by nonstandard ical files.
Reported by: Anish Mistry <mistry.7@osu.edu> Approved by: portmgr (linimon)
Diffstat (limited to 'deskutils/kdepim4')
-rw-r--r--deskutils/kdepim4/Makefile2
-rw-r--r--deskutils/kdepim4/files/patch-libkcal_libical_src_libicalss-icalclassify.c26
2 files changed, 27 insertions, 1 deletions
diff --git a/deskutils/kdepim4/Makefile b/deskutils/kdepim4/Makefile
index 03fecec8c56a..758dd162ab70 100644
--- a/deskutils/kdepim4/Makefile
+++ b/deskutils/kdepim4/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/kdepim4/files/patch-libkcal_libical_src_libicalss-icalclassify.c b/deskutils/kdepim4/files/patch-libkcal_libical_src_libicalss-icalclassify.c
new file mode 100644
index 000000000000..ea51bdeb86a3
--- /dev/null
+++ b/deskutils/kdepim4/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);