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

Commit 489931b6 authored by Christopher Wiley's avatar Christopher Wiley Committed by Alex Deymo
Browse files

libbinder: Fix out of bounds in readBoolVector

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

(cherry picked from commit 97887989)

Change-Id: If9b69836092f40d121a7e62d890c2e1c41080448
parent 210648c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1511,8 +1511,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;