Skip to content
Commit 11bfbf07 authored by Mitch Phillips's avatar Mitch Phillips
Browse files

Add explicit handling for an unspecified gwpAsanMode manifest flag.

In future, we'd like to change the default for an unspecified
gwpAsanMode flag. Currently, this implies
mallopt(M_INITIALIZE_GWP_ASAN, { .desire =
DONT_TURN_ON_UNLESS_OVERRIDDEN }) for non-system apps and { .desire =
TURN_ON_WITH_SAMPLING } for system apps.

But, as noted in the TODO, we'd like to change this behaviour. Thus, we
need to plumb through the fact that the manifest flag was left
unspecified.

Bug: 247012630
Test: Add some logging code to libc's android_mallopt, install an app
with an unspecified gwpAsanMode, and make sure that log line is hit.

Change-Id: I45b064c89ceeace0014a19ba1d9e8ac0a2157328
parent 486bbbd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment