diff options
author | Mathias Agopian <mathias@google.com> | 2010-07-22 18:57:41 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-07-22 18:57:41 -0700 |
commit | b54a3c95801da5464bbfcbb551545b543ca4d46c (patch) | |
tree | 4ad702a20a858ec5951c6e7c277a0cc73a684fe5 /libs | |
parent | efba8bf53aa6d0efb8cf778aaa63a482b813d2b1 (diff) | |
download | frameworks_base-b54a3c95801da5464bbfcbb551545b543ca4d46c.zip frameworks_base-b54a3c95801da5464bbfcbb551545b543ca4d46c.tar.gz frameworks_base-b54a3c95801da5464bbfcbb551545b543ca4d46c.tar.bz2 |
Fix a memory corruption when writting Sensor into a parcel
Change-Id: I03f703ae2224f43924031bfea4c68aa979bb9f05
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/Sensor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/Sensor.cpp b/libs/gui/Sensor.cpp index 48e1cb7..cb85df9 100644 --- a/libs/gui/Sensor.cpp +++ b/libs/gui/Sensor.cpp @@ -89,7 +89,7 @@ size_t Sensor::getFlattenedSize() const return sizeof(int32_t) + ((mName.length() + 3) & ~3) + sizeof(int32_t) + ((mVendor.length() + 3) & ~3) + sizeof(int32_t) * 2 + - sizeof(float) * 3; + sizeof(float) * 4; } size_t Sensor::getFdCount() const |