commit | 1f76049c955c605b61ef0d923582c740c325b1a0 | [log] [tgz] |
---|---|---|
author | Christopher Wiley <wiley@google.com> | Wed Oct 28 18:14:01 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Oct 28 18:14:01 2015 +0000 |
tree | 73e5f0217e12a64e4ad61c6818b380a567ab82d6 | |
parent | af5c3b1d6a9cc1d36b526291391009b2a4e097ff [diff] | |
parent | 97887989495318803643c91b196b6bcabf2a7a03 [diff] |
Merge "libbinder: Fix out of bounds in readBoolVector"
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 70e41e3..48bf799 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp
@@ -1487,8 +1487,8 @@ /* 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; + bool data; + for (int32_t i = 0; i < size; ++i) { status = readBool(&data); (*val)[i] = data;