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

Commit 97887989 authored by Christopher Wiley's avatar Christopher Wiley
Browse files

libbinder: Fix out of bounds in readBoolVector

Bug: 25012838
Test: This code now works at runtime.

Change-Id: I3d6b2677f11276e6be4c51451ca36572a4ee573d
parent 0d6d2917
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1487,8 +1487,8 @@ status_t Parcel::readBoolVector(std::vector<bool>* val) const {
    /* C++ bool handling means a vector of bools isn't necessarily addressable
     * (we might use individual bits)
     */
    for (int32_t i = 0; i < size; size++) {
    bool data;
    for (int32_t i = 0; i < size; ++i) {
        status = readBool(&data);
        (*val)[i] = data;