Index: sanitizer_common/sanitizer_vector.h =================================================================== --- sanitizer_common/sanitizer_vector.h +++ sanitizer_common/sanitizer_vector.h @@ -95,8 +95,10 @@ T *last_; void EnsureSize(uptr size) { - if (size <= Size()) + if (size <= Size()) { + end_ = begin_ + size; return; + } if (size <= (uptr)(last_ - begin_)) { end_ = begin_ + size; return;