From d547432f98889d57a8c37e91090664efe63da436 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Thu, 21 Apr 2011 14:15:00 +0400 Subject: [PATCH] Make sure binder ioctl structs don't contain uninitialized values. Change-Id: I8a678f91262417bb120e65e32c244ce1512b46c2 --- libs/binder/IPCThreadState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 95cfddf75..392193b8d 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) {