aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2021-04-12 11:42:26 +0100
committerDavid Spickett <david.spickett@linaro.org>2021-07-30 11:47:58 +0100
commit98b5659b53ff93f3b68e48ea28ec54081196ae3b (patch)
tree138571ffcee27b215479c7a354984e57bb4b3ac4 /clang/lib/Frontend/CompilerInvocation.cpp
parent555cd03193c9c098d787bec93eadfe43b179db9c (diff)
downloadllvm-98b5659b53ff93f3b68e48ea28ec54081196ae3b.zip
llvm-98b5659b53ff93f3b68e48ea28ec54081196ae3b.tar.gz
llvm-98b5659b53ff93f3b68e48ea28ec54081196ae3b.tar.bz2
[lldb][AArch64] Mark mismatched tags in tag read output
The "memory tag read" command will now tell you when the allocation tag read does not match the logical tag. (lldb) memory tag read mte_buf+(8*16) mte_buf+(8*16)+48 Logical tag: 0x9 Allocation tags: [0xfffff7ff7080, 0xfffff7ff7090): 0x8 (mismatch) [0xfffff7ff7090, 0xfffff7ff70a0): 0x9 [0xfffff7ff70a0, 0xfffff7ff70b0): 0xa (mismatch) The logical tag will be taken from the start address so the end could have a different tag. You could for example read from ptr_to_array_1 to ptr_to_array_2. Where the latter is tagged differently to prevent buffer overflow. The existing command will read 1 granule if you leave off the end address. So you can also use it as a quick way to check a single location. (lldb) memory tag read mte_buf Logical tag: 0x9 Allocation tags: [0xfffff7ff7000, 0xfffff7ff7010): 0x0 (mismatch) This avoids the need for a seperate "memory tag check" command. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D106880
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions