OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6f3900
)
Make sure binder ioctl structs don't contain uninitialized values.
author
Evgeniy Stepanov
<eugenis@google.com>
Thu, 21 Apr 2011 10:15:00 +0000
(14:15 +0400)
committer
Evgeniy Stepanov
<eugenis@google.com>
Thu, 21 Apr 2011 10:37:15 +0000
(14:37 +0400)
Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
libs/binder/IPCThreadState.cpp
patch
|
blob
|
history
diff --git
a/libs/binder/IPCThreadState.cpp
b/libs/binder/IPCThreadState.cpp
index
95cfddf
..
392193b
100644
(file)
--- a/
libs/binder/IPCThreadState.cpp
+++ b/
libs/binder/IPCThreadState.cpp
@@
-851,6
+851,9
@@
status_t IPCThreadState::writeTransactionData(int32_t cmd, uint32_t binderFlags,
tr.target.handle = handle;
tr.code = code;
tr.flags = binderFlags;
+ tr.cookie = 0;
+ tr.sender_pid = 0;
+ tr.sender_euid = 0;
const status_t err = data.errorCheck();
if (err == NO_ERROR) {