[scudo] Detect double free when running with MTE.
authorEvgenii Stepanov <eugenis@google.com>
Thu, 3 Nov 2022 19:42:37 +0000 (12:42 -0700)
committerEvgenii Stepanov <eugenis@google.com>
Fri, 18 Nov 2022 21:18:00 +0000 (13:18 -0800)
commit1dd54691b20d8bf65156cdf35d241cfcd684cb54
treeca0b51014ab1f3a9386f891d9da9c118e8577f75
parent87debdadaf18f8a5c7e5d563889e10731dc3554d
[scudo] Detect double free when running with MTE.

Try to trigger an MTE fault on double/invalid free by touching the first
byte of the allocation with the provided pointer.

Differential Revision: https://reviews.llvm.org/D137352
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp