logd: unaligned access on security buffer

Bug: 26485626
Change-Id: I990447ca59982bb2de15decda575fd0e2838b5ed
This commit is contained in:
Mark Salyzyn 2016-01-12 10:08:03 -08:00
parent e4b332c7e4
commit 4690640760

View file

@ -15,6 +15,7 @@
*/
#include <limits.h>
#include <sys/cdefs.h>
#include <sys/prctl.h>
#include <sys/socket.h>
#include <sys/types.h>
@ -46,7 +47,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) {
+ LOGGER_ENTRY_MAX_PAYLOAD];
struct iovec iov = { buffer, sizeof(buffer) };
char control[CMSG_SPACE(sizeof(struct ucred))];
char control[CMSG_SPACE(sizeof(struct ucred))] __aligned(4);
struct msghdr hdr = {
NULL,
0,