Merge "libbinder: Fix out of bounds in readBoolVector"
am: 1f76049c95
* commit '1f76049c955c605b61ef0d923582c740c325b1a0':
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;