diff options
author | 2011-04-21 14:15:00 +0400 | |
---|---|---|
committer | 2011-04-21 14:37:15 +0400 | |
commit | 594f3eec38840aaaf7557196f353744fdb725b59 (patch) | |
tree | 025e73c07a3a2fcae70e376ad393b34fb9cf00cc /libs/binder/IPCThreadState.cpp | |
parent | 4804c211a60e1bfb7e7878cfe1e48541136e8388 (diff) |
Make sure binder ioctl structs don't contain uninitialized values.
Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-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 95cfddf758f2..392193b8d9e5 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) { |