summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/tests/malloc_debug_system_tests.cpp
diff options
context:
space:
mode:
authorMitch Phillips <mitchp@google.com>2020-04-17 15:00:37 -0700
committerMitch Phillips <mitchp@google.com>2020-04-17 22:04:27 +0000
commitb125ca48de1f5960c1ef606120d3c5c0869cd075 (patch)
tree8da0b14470d438e9ed331abb6a02f4eb9d42fe84 /libc/malloc_debug/tests/malloc_debug_system_tests.cpp
parent23ec1421b539128ec9941deadfc4b30babf6e1b6 (diff)
Set the top bit for tagged pointers.
Some applications may incorrectly assume that a "negative" pointer indicates error. By setting the top bit in TBI mode, we catch these cases as well. Although they don't directly indicate incompatibility with MTE (as MTE uses the 2nd-highest nibble) - this ensures we catch HWASan errors as well as reserve the bits for future MTE expansion. Bug: 154272452 Test: Boot flame, device boots successfully. Change-Id: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b
Diffstat (limited to 'libc/malloc_debug/tests/malloc_debug_system_tests.cpp')
0 files changed, 0 insertions, 0 deletions