summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Andy Hung <hunga@google.com> 2021-01-07 08:47:25 -0800
committer Andy Hung <hunga@google.com> 2021-01-08 13:48:05 -0800
commitf37d1bd3d9053ee580c5ce51cfe0f3ceeae71cef (patch)
tree5ea9b5811861c1901f47bc76c2aca999fa97aa49 /libs/binder/IPCThreadState.cpp
parent048f1e93fd31849b1b9d9e9dc4293e630280caae (diff)
Parcel: Add vector read size bounds check
When reserving data for a vector read, limit the size against the number of available bytes in the Parcel. This is a mitigating solution to avoid corrupted Parcels from throwing std::badalloc exceptions in std::vector reserve/resize. Test: see bug and dups for details on issues Test: atest binderLibTest Test: atest binderParcelTest Bug: 131868573 Change-Id: I61b2fea6a481221214d1e7d8c85d8c197de355bc
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
0 files changed, 0 insertions, 0 deletions