diff options
author | Josh Gao <jmgao@google.com> | 2020-09-21 14:32:42 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2020-09-21 14:47:56 -0700 |
commit | 4c392e8057d8b9950fbe51922136dcd70e9fb750 (patch) | |
tree | 5df7ea9654f9a2187db9fab2c7c831018bb7de2d /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | c26848e7bdaf7cc63c3d03a7e8b3ba2869c99dec (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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions