summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorforkbomb <keepcalm444@gmail.com>2015-12-03 20:34:15 +1100
committerforkbomb <keepcalm444@gmail.com>2015-12-04 15:42:51 +1100
commit53602ffde5527c476a1d7d39da12ecd7f58917f4 (patch)
treee349599c788442837cb608a13ecd2259ad9f9c23 /include/binder
parent8c39282e31603b1b594ff1381f2c11e5863c2bbe (diff)
downloadframeworks_native-53602ffde5527c476a1d7d39da12ecd7f58917f4.zip
frameworks_native-53602ffde5527c476a1d7d39da12ecd7f58917f4.tar.gz
frameworks_native-53602ffde5527c476a1d7d39da12ecd7f58917f4.tar.bz2
libbinder: allow devices to disable ashmem size tracking
The addition of ashmem size tracking can lead to parcel objects overwriting other values on the stack in old binary blobs. Change-Id: Ida52cec851a6f9d5a57c8f9130a5875c03dcb094
Diffstat (limited to 'include/binder')
-rw-r--r--include/binder/Parcel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index 3ada1e9..dc9757e 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -340,8 +340,10 @@ public:
inline void* data() { return mData; }
};
+#ifndef DISABLE_ASHMEM_TRACKING
private:
size_t mBlobAshmemSize;
+#endif
public:
size_t getBlobAshmemSize() const;