]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
Avoid member access within misaligned address for ancillary data buffer.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index 06707d6cfee11a70089db3fd7ef230af454e1516..4c9f362344ce5bb8c6ae1e6b826fd78aaa140684 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -938,7 +938,7 @@ static void vss_pre_select(struct sched *s, struct task *t)
 
 static int recv_afs_msg(int afs_socket, int *fd, uint32_t *code, uint32_t *data)
 {
-       char control[255], buf[8];
+       char control[255] __a_aligned(8), buf[8];
        struct msghdr msg = {.msg_iov = NULL};
        struct cmsghdr *cmsg;
        struct iovec iov;