summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2014-02-20 00:00:49 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-20 00:00:49 +0000
commitd06f6b001484c28a6ede3f1ad83d23dcb9ad3ccf (patch)
treea24b7650201903d12513da6baca9135e0bf1badc /libs/binder
parentd437364ec156e07c5fbe3fa27a7cd55e5450e9f6 (diff)
parent6790329358d1c84af2fe9ba093bcfc1c6176e758 (diff)
downloadframeworks_native-d06f6b001484c28a6ede3f1ad83d23dcb9ad3ccf.zip
frameworks_native-d06f6b001484c28a6ede3f1ad83d23dcb9ad3ccf.tar.gz
frameworks_native-d06f6b001484c28a6ede3f1ad83d23dcb9ad3ccf.tar.bz2
am 67903293: Fix "Binder: Make sure binder objects do not overlap" to work old binder kernel interface
* commit '6790329358d1c84af2fe9ba093bcfc1c6176e758': Fix "Binder: Make sure binder objects do not overlap" to work old binder kernel interface
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/Parcel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 882130f..0210606 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -1318,7 +1318,7 @@ size_t Parcel::ipcObjectsCount() const
void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize,
const size_t* objects, size_t objectsCount, release_func relFunc, void* relCookie)
{
- binder_size_t minOffset = 0;
+ size_t minOffset = 0;
freeDataNoInit();
mError = NO_ERROR;
mData = const_cast<uint8_t*>(data);
@@ -1332,10 +1332,10 @@ void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize,
mOwner = relFunc;
mOwnerCookie = relCookie;
for (size_t i = 0; i < mObjectsSize; i++) {
- binder_size_t offset = mObjects[i];
+ size_t offset = mObjects[i];
if (offset < minOffset) {
- ALOGE("%s: bad object offset %"PRIu64" < %"PRIu64"\n",
- __func__, (uint64_t)offset, (uint64_t)minOffset);
+ ALOGE("%s: bad object offset %zu < %zu\n",
+ __func__, offset, minOffset);
mObjectsSize = 0;
break;
}