summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Devin Moore <devinmoore@google.com> 2025-03-12 19:35:53 +0000
committer Devin Moore <devinmoore@google.com> 2025-03-19 21:30:35 +0000
commit611b730bade54a0a79dbcc3087d9393086e6dbdf (patch)
tree1342bd6bef5a470a6796edecac33ee6cc1d0455f /libs/binder/Parcel.cpp
parentd0503fa4db892711445b44302d36968a88a469a8 (diff)
Check mDataPos to see if the Parcel needs to grow
Flag: EXEMPT bug fix Ignore-AOSP-First: security fix Test: atest binderUnitTest Bug: 399155883 Change-Id: I38b755ca3381cfca3300292873f763823fbf169b
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) {