summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2020-09-21 14:32:42 -0700
committerJosh Gao <jmgao@google.com>2020-11-06 13:12:51 -0800
commitca46512d0a501d3ae555758e6b4167cbf419e606 (patch)
tree27ef57eb47657dbe7e8d67393944401f846a0638 /tools/aapt2/java/JavaClassGenerator.cpp
parent655789af79fbb1f42c733fe82444c31ee10caca4 (diff)
FileBridge: fix fd ownership mismanagement.
This patch switches everything over to ParcelFileDescriptor, but the important part of the change is changing FileBridge.getClientSocket to return a ParcelFileDescriptor. Previously, it returned a raw FileDescriptor that was closed by FileBridge, and the only non-test caller of that function was taking it and constructing a ParcelFileDescriptor from it, which would also attempt to close the fd, leading to an fdsan abort. Bug: http://b/162811367 Test: atest FileBridgeTest Test: treehugger Change-Id: I724ea7601bb072c98895f68abc08bb0e339d1db0 (cherry picked from commit 4c392e8057d8b9950fbe51922136dcd70e9fb750)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions