svn commit: r391392 - in head/mail/sylpheed: . files

Emanuel Haupt ehaupt at FreeBSD.org
Mon Jul 6 07:14:30 UTC 2015


Author: ehaupt
Date: Mon Jul  6 07:14:29 2015
New Revision: 391392
URL: https://svnweb.freebsd.org/changeset/ports/391392

Log:
  Provide fix for sigbus on ARM caused by unaligned access.
  
  PR:		200053
  Submitted by:	mikael.urankar at gmail.com, usenet at ulrich-grey.de

Added:
  head/mail/sylpheed/files/patch-libsylph_procmsg.c   (contents, props changed)
Modified:
  head/mail/sylpheed/Makefile

Modified: head/mail/sylpheed/Makefile
==============================================================================
--- head/mail/sylpheed/Makefile	Mon Jul  6 05:43:33 2015	(r391391)
+++ head/mail/sylpheed/Makefile	Mon Jul  6 07:14:29 2015	(r391392)
@@ -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

Added: head/mail/sylpheed/files/patch-libsylph_procmsg.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/sylpheed/files/patch-libsylph_procmsg.c	Mon Jul  6 07:14:29 2015	(r391392)
@@ -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);				\
+ 	}							\
+ }


More information about the svn-ports-head mailing list