Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41451f09 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Force-initialize potential padding area."

parents 6cb428ef e33af7fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -227,6 +227,7 @@ status_t CursorWindow::writeToParcel(Parcel* parcel) {
        if (!dest) goto fail;
        memcpy(static_cast<uint8_t*>(dest),
                static_cast<uint8_t*>(mData), mAllocOffset);
        memset(static_cast<uint8_t*>(dest) + mAllocOffset, 0, 4);
        memcpy(static_cast<uint8_t*>(dest) + compactedSize - slotsSize,
                static_cast<uint8_t*>(mData) + mSlotsOffset, slotsSize);
    }