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

Commit 29dedec7 authored by Casey Dahlin's avatar Casey Dahlin
Browse files

resolve merge conflicts of 70b9a03d to nyc-mr2-dev-plus-aosp

Change-Id: If543d1c9f9ae22a2803e16d257531335b2995a96
parents 1ff50056 70b9a03d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -681,8 +681,16 @@ status_t Parcel::unsafeReadTypedVector(
        return UNEXPECTED_NULL;
    }

    if (val->max_size() < size) {
        return NO_MEMORY;
    }

    val->resize(static_cast<size_t>(size));

    if (val->size() < size) {
        return NO_MEMORY;
    }

    for (auto& v: *val) {
        status = (this->*read_func)(&v);