scudo: Exclude previous tag when retagging freed memory.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 30 Apr 2020 23:42:17 +0000 (16:42 -0700)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 May 2020 16:35:38 +0000 (09:35 -0700)
commit8fac07a12adcd968cd4b6a1c1067e4596ad40b1a
tree93bf141cf40e8f5422f787f4755472d7bee532e9
parent081dbd61db8a1ead5d95cf248211011d9cda4894
scudo: Exclude previous tag when retagging freed memory.

This means that immediate use after free will be detected 100% of
the time.

Differential Revision: https://reviews.llvm.org/D79216
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/memtag.h