summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorYurii Zubrytskyi <zyy@google.com>2021-02-28 22:19:07 -0800
committerYurii Zubrytskyi <zyy@google.com>2021-03-05 01:42:18 -0800
commit3880f2994934516f4d26fa0decba47f62ad50cf8 (patch)
treec673175281eacfa4208d3db4bb8ecc4f19a7429a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent80d0f4c66bc4b64e0f3cd1fe6a12db09705b9c4d (diff)
[hardening] Use read() instead of mmap() for incfs files
Digest calculation is currently optimized for perfromance, and it uses fine-tuned mmap() to access the APK. As IncFS-based APKs aren't supposed to be fully digested, this code will probably never run for those. But just in case, it's better to switch over to a slightly slower read()-based implementation that doesn't have any chance of crashing the whole process via a SIGBUS signal Bug: 175632872 Test: atest framework/base/core Change-Id: Id3dc4cd5090679120d95da40c0dfdde0d72b6bb0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions