diff options
author | Arve Hjønnevåg <arve@android.com> | 2014-02-20 21:27:53 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-20 21:27:53 +0000 |
commit | ee319ab1d29f9cfd98752e8e3e876c9e7fccb264 (patch) | |
tree | 5e3613926a070be67dabae2aa193026ab433a404 /libs/binder/Parcel.cpp | |
parent | f72aa27a2adb01c5fa9bd372e1b433fba7060e0d (diff) | |
parent | 6f286114ec1d597f3dae987bba6e72dbbc404e32 (diff) | |
download | frameworks_native-ee319ab1d29f9cfd98752e8e3e876c9e7fccb264.zip frameworks_native-ee319ab1d29f9cfd98752e8e3e876c9e7fccb264.tar.gz frameworks_native-ee319ab1d29f9cfd98752e8e3e876c9e7fccb264.tar.bz2 |
am 6f286114: Revert "Fix "Binder: Make sure binder objects do not overlap" to work old binder kernel interface"
* commit '6f286114ec1d597f3dae987bba6e72dbbc404e32':
Revert "Fix "Binder: Make sure binder objects do not overlap" to work old binder kernel interface"
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r-- | libs/binder/Parcel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 06dfe09..870071d 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -1383,7 +1383,7 @@ size_t Parcel::ipcObjectsCount() const void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize, const binder_size_t* objects, size_t objectsCount, release_func relFunc, void* relCookie) { - size_t minOffset = 0; + binder_size_t minOffset = 0; freeDataNoInit(); mError = NO_ERROR; mData = const_cast<uint8_t*>(data); @@ -1397,10 +1397,10 @@ void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize, mOwner = relFunc; mOwnerCookie = relCookie; for (size_t i = 0; i < mObjectsSize; i++) { - size_t offset = mObjects[i]; + binder_size_t offset = mObjects[i]; if (offset < minOffset) { - ALOGE("%s: bad object offset %zu < %zu\n", - __func__, offset, minOffset); + ALOGE("%s: bad object offset %"PRIu64" < %"PRIu64"\n", + __func__, (uint64_t)offset, (uint64_t)minOffset); mObjectsSize = 0; break; } |