DescriptionVectorComparer should check null.
We use VectorComparer to compare WTF::Vector<T>.
If T is not primitive type, we use std::equal to compare.
By the way, we use the WTF::VectorBufferBase class for a base class of Vector. VectorBufferBase doesn't alloc a array if we init it without a size argument.
As a conclusion, we pass NULL object to std::equal when we compare Vectors with the default constructor.
It is asserted especially on a Windows debug build.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176189
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add tests #
Messages
Total messages: 6 (0 generated)
|