Loading libs/binder/Parcel.cpp +1 −9 Original line number Diff line number Diff line Loading @@ -2547,16 +2547,8 @@ status_t Parcel::continueWrite(size_t desired) objectsSize = 0; } else { while (objectsSize > 0) { if (mObjects[objectsSize-1] < desired) { // Check for an object being sliced if (desired < mObjects[objectsSize-1] + sizeof(flat_binder_object)) { ALOGE("Attempt to shrink Parcel would slice an objects allocated memory"); return UNKNOWN_ERROR + 0xBADF10; } if (mObjects[objectsSize-1] < desired) break; } // STOPSHIP: Above code to be replaced with following commented code: // if (mObjects[objectsSize-1] + sizeof(flat_binder_object) <= desired) break; objectsSize--; } } Loading Loading
libs/binder/Parcel.cpp +1 −9 Original line number Diff line number Diff line Loading @@ -2547,16 +2547,8 @@ status_t Parcel::continueWrite(size_t desired) objectsSize = 0; } else { while (objectsSize > 0) { if (mObjects[objectsSize-1] < desired) { // Check for an object being sliced if (desired < mObjects[objectsSize-1] + sizeof(flat_binder_object)) { ALOGE("Attempt to shrink Parcel would slice an objects allocated memory"); return UNKNOWN_ERROR + 0xBADF10; } if (mObjects[objectsSize-1] < desired) break; } // STOPSHIP: Above code to be replaced with following commented code: // if (mObjects[objectsSize-1] + sizeof(flat_binder_object) <= desired) break; objectsSize--; } } Loading