summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-07-17 15:00:31 -0700
committerJosh Gao <jmgao@google.com>2018-07-17 18:16:17 -0700
commitb066087d65b720a5c9ac48f64a856284566df82f (patch)
tree3b3e6cdd5d10190157da746833786017b65852f0 /rs/java/android/renderscript/ProgramStore.java
parent55ce82b1dd1ba337b977d64c8d1a1a0eca13e512 (diff)
Fix double close in NativeLibraryHelper.openApkFd.
Prior to this patch, we were taking the file descriptor owned by a ParcelFileDescriptor, and passing it into ZipFileRO::openFd, which expects to take ownership of the file descriptor, closing it upon destruction. This leads to a double-close when the ParcelFileDescriptor tries to close itself. Switch to passing a duped copy of the file descriptor to ZipFileRO::openFd. Test: `pm install foo.apk` with fdsan Change-Id: Ida4ca4a37b82875dc4eef1f37bf2322c422fe038
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions