|
From: <ew...@us...> - 2007-11-06 21:33:58
|
Revision: 2678
http://selinux.svn.sourceforge.net/selinux/?rev=2678&view=rev
Author: ewalsh
Date: 2007-11-06 13:33:57 -0800 (Tue, 06 Nov 2007)
Log Message:
-----------
Add GNU alignment attributes to buffers that are cast to structures
to avoid unaligned access problems on 64-bit systems.
Signed-off-by: Eamon Walsh <ew...@ty...>
Modified Paths:
--------------
trunk/libselinux/src/avc_internal.c
Modified: trunk/libselinux/src/avc_internal.c
===================================================================
--- trunk/libselinux/src/avc_internal.c 2007-11-05 19:11:43 UTC (rev 2677)
+++ trunk/libselinux/src/avc_internal.c 2007-11-06 21:33:57 UTC (rev 2678)
@@ -183,7 +183,7 @@
int avc_netlink_check_nb(void)
{
int rc;
- char buf[1024];
+ char buf[1024] __attribute__ ((aligned));
while (1) {
errno = 0;
@@ -209,7 +209,7 @@
void avc_netlink_loop(void)
{
int rc;
- char buf[1024];
+ char buf[1024] __attribute__ ((aligned));
while (1) {
errno = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|