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

This commit is contained in:
Kenny Root 2011-04-21 08:12:56 -07:00 committed by Android (Google) Code Review
commit f9edd4db62

View File

@ -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) {