commit | b334a61df1235666c42d356de7398f5b5a96892b | [log] [tgz] |
---|---|---|
author | shafik <shafik@google.com> | Mon Sep 30 20:38:16 2019 +0100 |
committer | shafik <shafik@google.com> | Tue Oct 01 11:26:56 2019 +0100 |
tree | 93288854fac89288a6349440b0bf7bdb9077d138 | |
parent | f715499619eb68d7f965becda7789052432f4405 [diff] |
Use mmap for redacted ranges Previously, a zeroized buffer was allocated for each redacted range. This CL explicitly sets the max read size in FuseDaemon to 128kB, mmap's a zeroized memory region of that size once and reuses this memory for all redacted ranges, Test: adb pull <photo with location data> # location data was redacted Fixes: 140799126 Change-Id: I3f8e8eb747e838967e4603d87bb4ba34e7bf20cb