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

Commit eba7afcc authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am 2f340be3: Disregard alleged binder entities beyond parcel bounds

* commit '2f340be3':
  Disregard alleged binder entities beyond parcel bounds
parents 8728c390 2f340be3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ status_t Parcel::appendFrom(const Parcel *parcel, size_t offset, size_t len)
    // Count objects in range
    for (int i = 0; i < (int) size; i++) {
        size_t off = objects[i];
        if ((off >= offset) && (off < offset + len)) {
        if ((off >= offset) && (off + sizeof(flat_binder_object) <= offset + len)) {
            if (firstIndex == -1) {
                firstIndex = i;
            }