aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/stringview.cpp
AgeCommit message (Collapse)Author
2020-07-06[vcpkg] Format the C++ in CI (#11655)nicole mazzuca
* [vcpkg] Format the C++ in the CI * format the C++ * CR
2019-08-27[vcpkg] fix bug in StringView::operator== 😱 (#7930)nicole mazzuca
Before this change, `lhs == rhs` missed the check for `lhs.size() == rhs.size()`, and then did a `memcmp` on the buffers up to `lhs.size()`. This means that, if `lhs.size() < rhs.size()`, it would allow two unequal strings to compare equal if, up to `lhs.size()` they are the same; and if `lhs.size() > rhs.size()`, then it would read out of bounds.