summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.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-20 13:58:44 -0700
commit8dceacc296f4cef9606efbde467a4b399cf53ba7 (patch)
tree1ef330dc39f3e65ae6634a34d601b193d293b076 /libc/malloc_debug/malloc_debug.cpp
parentede1fd19e27331d145fdae71ce8ef22b21e47681 (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 Merged-In: I94a6821a82ce7ead59e6ca2dd113a5a50ee9e56b
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions