Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
46906407
Commit
46906407
authored
Jan 12, 2016
by
Mark Salyzyn
Browse files
Options
Downloads
Patches
Plain Diff
logd: unaligned access on security buffer
Bug: 26485626 Change-Id: I990447ca59982bb2de15decda575fd0e2838b5ed
parent
e4b332c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
logd/LogListener.cpp
+2
-1
2 additions, 1 deletion
logd/LogListener.cpp
with
2 additions
and
1 deletion
logd/LogListener.cpp
+
2
−
1
View file @
46906407
...
@@ -15,6 +15,7 @@
...
@@ -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) {
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment