Merge "logd: unaligned access on security buffer"
This commit is contained in:
commit
27460366e8
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
#include <sys/prctl.h>
|
#include <sys/prctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
@ -46,7 +47,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) {
|
||||||
+ LOGGER_ENTRY_MAX_PAYLOAD];
|
+ LOGGER_ENTRY_MAX_PAYLOAD];
|
||||||
struct iovec iov = { buffer, sizeof(buffer) };
|
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 = {
|
struct msghdr hdr = {
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue