summaryrefslogtreecommitdiff
path: root/lib/asan/asan_poisoning.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-04-05 14:40:25 +0000
committerKostya Serebryany <kcc@google.com>2013-04-05 14:40:25 +0000
commita27bdf70ca24202dce21cf7c1a387aeaa400d889 (patch)
tree89e7bc0a6311be72249c791153a8f75ac6f9bde4 /lib/asan/asan_poisoning.cc
parentcd3049da150124156502b1a8c05e4c4887786cc5 (diff)
[sanitizer] found a bug by code inspection: CHECK(a=b) instead of CHECK(a==b). Was puzzled why lint did not catch it. Turns out this check was disabled for asan source. fix all cases and enable the check
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_poisoning.cc')
-rw-r--r--lib/asan/asan_poisoning.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_poisoning.cc b/lib/asan/asan_poisoning.cc
index 5213cdce8..e8b08d205 100644
--- a/lib/asan/asan_poisoning.cc
+++ b/lib/asan/asan_poisoning.cc
@@ -23,7 +23,7 @@ void PoisonShadow(uptr addr, uptr size, u8 value) {
CHECK(AddrIsInMem(addr));
CHECK(AddrIsAlignedByGranularity(addr + size));
CHECK(AddrIsInMem(addr + size - SHADOW_GRANULARITY));
- CHECK(REAL(memset) != 0);
+ CHECK(REAL(memset));
FastPoisonShadow(addr, size, value);
}