diff options
author | Kenny Root <kroot@google.com> | 2011-04-21 08:12:56 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-21 08:12:56 -0700 |
commit | e5463ab6ed03ccabf7156afd6638c95f67472b04 (patch) | |
tree | 9cb423fd56e0333285b2091bbc2328cd8ab1b0fb | |
parent | b63572f9a6b388e25df75b4f704e6efde516bd8c (diff) | |
parent | 594f3eec38840aaaf7557196f353744fdb725b59 (diff) | |
download | frameworks_base-e5463ab6ed03ccabf7156afd6638c95f67472b04.zip frameworks_base-e5463ab6ed03ccabf7156afd6638c95f67472b04.tar.gz frameworks_base-e5463ab6ed03ccabf7156afd6638c95f67472b04.tar.bz2 |
Merge "Make sure binder ioctl structs don't contain uninitialized values."
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 95cfddf..392193b 100644 --- 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) { |