Make sure binder ioctl structs don't contain uninitialized values.

Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2
This commit is contained in:
Evgeniy Stepanov 2011-04-21 14:15:00 +04:00
parent a6f390007b
commit d547432f98

View File

@ -851,6 +851,9 @@ status_t IPCThreadState::writeTransactionData(int32_t cmd, uint32_t binderFlags,
tr.target.handle = handle; tr.target.handle = handle;
tr.code = code; tr.code = code;
tr.flags = binderFlags; tr.flags = binderFlags;
tr.cookie = 0;
tr.sender_pid = 0;
tr.sender_euid = 0;
const status_t err = data.errorCheck(); const status_t err = data.errorCheck();
if (err == NO_ERROR) { if (err == NO_ERROR) {