[ASan] Remove sanity checks during annotation of contiguous container
authorAdvenam Tacet <advenam.tacet@trailofbits.com>
Tue, 27 Jun 2023 01:30:03 +0000 (03:30 +0200)
committerAdvenam Tacet <advenam.tacet@trailofbits.com>
Tue, 27 Jun 2023 04:07:03 +0000 (06:07 +0200)
commit0b2c0dc63faa51835b864f1277f4d5ddffc49f6c
tree1556ed05bf141fcb2a26a98d7ee3842de2066bbe
parentebd0b8a0472b865b7eb6e1a32af97ae31d829033
[ASan] Remove sanity checks during annotation of contiguous container

This revision removes sanity checks in
`__sanitizer_annotate_contiguous_container`.
(Changed them to `DCHECK_EQ`.)
Those checks may be problematic, if someone manually unpoisoned memory block.
Manual unpoisoning may be used if part of the program is not
instrumented.

Those checks are helpful while confirming correctness of ASan annotations
implementation.

Originally suggested here: https://reviews.llvm.org/D136765#4174546

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D145482
compiler-rt/lib/asan/asan_poisoning.cpp