summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-20 20:37:51 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-20 20:37:51 -0700
commitf9bfbe16e4399252bdc51060e5c8af82db6f470e (patch)
tree9281c01d08d0e4dd43091d958a310b4a3c0f0792 /libs/binder/Parcel.cpp
parent5c398853aefb07d6ced3b98ac34b786b5558be84 (diff)
parent611b730bade54a0a79dbcc3087d9393086e6dbdf (diff)
Merge "Check mDataPos to see if the Parcel needs to grow" into main
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 777c22a63e..2c37624304 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -542,7 +542,7 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) {
return BAD_VALUE;
}
- if ((mDataSize+len) > mDataCapacity) {
+ if ((mDataPos + len) > mDataCapacity) {
// grow data
err = growData(len);
if (err != NO_ERROR) {