diff options
author | Evgeniy Stepanov <eugenis@google.com> | 2011-04-21 14:15:00 +0400 |
---|---|---|
committer | Evgeniy Stepanov <eugenis@google.com> | 2011-04-21 14:37:15 +0400 |
commit | d547432f98889d57a8c37e91090664efe63da436 (patch) | |
tree | 06f7be5920940021aea5dca1b2c96caac0437f2f /libs/binder | |
parent | a6f390007b4048e0c95047be63172570f7cd7cc6 (diff) | |
download | frameworks_native-d547432f98889d57a8c37e91090664efe63da436.zip frameworks_native-d547432f98889d57a8c37e91090664efe63da436.tar.gz frameworks_native-d547432f98889d57a8c37e91090664efe63da436.tar.bz2 |
Make sure binder ioctl structs don't contain uninitialized values.
Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
Diffstat (limited to 'libs/binder')
-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) { |