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

Commit 9b415621 authored by Casey Dahlin's avatar Casey Dahlin
Browse files

resolve merge conflicts of 5fef0c6d to nyc-mr1-dev-plus-aosp

Change-Id: I2362661ac567a1fe73b660499ecfb1a20f27c0db
parents 60f8850e 5fef0c6d
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() < static_cast<size_t>(size)) {
        return NO_MEMORY;
    }

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

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

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