aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2015-07-06 15:14:29 +0800
committerehaupt <ehaupt@FreeBSD.org>2015-07-06 15:14:29 +0800
commitf823e06af88071a48a34ae196883124a6bc80a72 (patch)
tree4a75c92802de57e58362f50c4a949fefaeb01ec8 /mail
parent9c60cb83787157269146ee274ecdc846d5a43fd3 (diff)
downloadfreebsd-ports-graphics-f823e06af88071a48a34ae196883124a6bc80a72.tar.gz
freebsd-ports-graphics-f823e06af88071a48a34ae196883124a6bc80a72.tar.zst
freebsd-ports-graphics-f823e06af88071a48a34ae196883124a6bc80a72.zip
Provide fix for sigbus on ARM caused by unaligned access.
PR: 200053 Submitted by: mikael.urankar@gmail.com, usenet@ulrich-grey.de
Diffstat (limited to 'mail')
-rw-r--r--mail/sylpheed/Makefile2
-rw-r--r--mail/sylpheed/files/patch-libsylph_procmsg.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/mail/sylpheed/Makefile b/mail/sylpheed/Makefile
index d2c91083c2a..5f1fcb1f2e5 100644
--- a/mail/sylpheed/Makefile
+++ b/mail/sylpheed/Makefile
@@ -3,7 +3,7 @@
PORTNAME= sylpheed
PORTVERSION= 3.4.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail ipv6
MASTER_SITES= http://sylpheed.sraoss.jp/sylpheed/v${PORTVERSION:C/\.[^\.]*$//}/ \
LOCAL/ehaupt
diff --git a/mail/sylpheed/files/patch-libsylph_procmsg.c b/mail/sylpheed/files/patch-libsylph_procmsg.c
new file mode 100644
index 00000000000..981fe96c9ec
--- /dev/null
+++ b/mail/sylpheed/files/patch-libsylph_procmsg.c
@@ -0,0 +1,20 @@
+--- libsylph/procmsg.c.orig 2014-06-10 04:06:35 UTC
++++ libsylph/procmsg.c
+@@ -164,7 +164,7 @@ static gint procmsg_read_cache_data_str_
+ if (endp - *p < sizeof(len))
+ return -1;
+
+- len = *(const guint32 *)(*p);
++ memcpy(&len, *p, sizeof(len));
+ *p += sizeof(len);
+ if (len > G_MAXINT || len > endp - *p)
+ return -1;
+@@ -197,7 +197,7 @@ static gint procmsg_read_cache_data_str_
+ g_mapped_file_free(mapfile); \
+ return NULL; \
+ } else { \
+- n = *(const guint32 *)p; \
++ memcpy(&n, p, sizeof(n)); \
+ p += sizeof(guint32); \
+ } \
+ }