Index: lib/sanitizer_common/sanitizer_win.cc =================================================================== --- lib/sanitizer_common/sanitizer_win.cc +++ lib/sanitizer_common/sanitizer_win.cc @@ -249,7 +249,7 @@ void* addr_as_void = reinterpret_cast(addr); uptr base_as_uptr = reinterpret_cast(base_); // Only unmap if it covers the entire range. - CHECK((addr_as_void == base_) && (size == size_)); + CHECK((addr == base_as_uptr) && (size == size_)); UnmapOrDie(reinterpret_cast(addr), size); }