Index: third_party/WebKit/Source/wtf/Vector.h |
diff --git a/third_party/WebKit/Source/wtf/Vector.h b/third_party/WebKit/Source/wtf/Vector.h |
index 972c7377f9684de030b9897ff193694777ae002d..25035266cc2d5ab1ef8e1738a799cff0566ca283 100644 |
--- a/third_party/WebKit/Source/wtf/Vector.h |
+++ b/third_party/WebKit/Source/wtf/Vector.h |
@@ -1264,6 +1264,8 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE; |
inline void Vector<T, inlineCapacity, Allocator>::remove(size_t position, size_t length) |
{ |
ASSERT_WITH_SECURITY_IMPLICATION(position <= size()); |
+ if (!length) |
+ return; |
RELEASE_ASSERT(position + length <= size()); |
T* beginSpot = begin() + position; |
T* endSpot = beginSpot + length; |