summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorforkbomb <keepcalm444@gmail.com>2015-12-03 20:34:15 +1100
committerSimon Shields <keepcalm444@gmail.com>2015-12-10 10:15:49 +1100
commit7cacf26abbfe2d2169460bc2d9cd7dc6e023fb6b (patch)
tree4c4a062a712f9d4197ed2f37896b42126ad4c70e /include
parentd40a35f61d2a149c79be2a906f262085487fd69a (diff)
downloadframeworks_native-7cacf26abbfe2d2169460bc2d9cd7dc6e023fb6b.zip
frameworks_native-7cacf26abbfe2d2169460bc2d9cd7dc6e023fb6b.tar.gz
frameworks_native-7cacf26abbfe2d2169460bc2d9cd7dc6e023fb6b.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: Ife8514be1ba639c4061de38b59794c46bcc2d7f8
Diffstat (limited to 'include')
-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 16cd6cf..91ffae0 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 mOpenAshmemSize;
+#endif
public:
// TODO: Remove once ABI can be changed.