Date: Mon, 6 Jul 2015 07:14:30 +0000 (UTC) From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r391392 - in head/mail/sylpheed: . files Message-ID: <201507060714.t667EUkr070807@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@gmail.com, usenet@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); \ + } \ + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507060714.t667EUkr070807>