commit | 536cf5e016367ee8a48812c6cd047de047df36cf | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Wed May 15 13:35:59 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Wed May 15 14:05:26 2019 -0700 |
tree | 1fabaaeb1819035c6260939211ef134adde1ad1e | |
parent | 28706f020b3bb4e93703e3405c03dc459fe1a04b [diff] |
MemoryIntArray: dup in writeToParcel. Previously, if a MemoryIntArray is written to a parcel from multiple threads, we'll create multiple ParcelFileDescriptors that own the same file descriptor, which fdsan doesn't like. Instead of adopting and then detaching, use ParcelFileDescriptor::fromFd which dups behind the scenes. Bug: http://b/132720476 Test: treehugger Change-Id: Iad4930cc2d8c59a9348fedb0889d24cb566afa62