summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Mitch Phillips <mitchp@google.com> 2023-02-09 11:25:10 -0800
committer Mitch Phillips <mitchp@google.com> 2023-02-09 12:52:51 -0800
commita63fa9ad0908cd32cad8485d1bd5a1e2f9f4e247 (patch)
treed9148467426c7510ad506ecd4f091e305dc31275 /libs/androidfw/ApkParsing.cpp
parent30eb433a3f1d889f115f81ddd9ccf861e75585bb (diff)
[GWP-ASan] Enable recoverable GWP-ASan for apps.
Currently, GWP-ASan is opt-in, and requires an app to set `gwpAsanMode=always` in the manifest. If `gwpAsanMode` is unspecified, or `gwpAsanMode=default`, then no GWP-ASan is enabled. Let's flip that to the new recoverable mode, which catches heap-use-after-free and heap-buffer-overflow using sampled page allocations (as per normal GWP-ASan), but now doesn't crash the app when it's detected. Also, provide a kill switch that we can use if we discover problems in the field, which can be pushed if necessary with go/android-exp. Bug: N/A Test: Build a device with this enabled, use some debugging apps that trigger a use-after-free to test the mode is working as intended. Change-Id: I03b1478c148b9f9cfaeaa16ed273f107b55f9057
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions