Merge "logd: unaligned access on security buffer" am: 27460366e8
am: bf5bb53a43
* commit 'bf5bb53a4366e8ca01033e3c96065c2b1ead53a1':
logd: unaligned access on security buffer
This commit is contained in:
commit
84fa00702b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue