aboutsummaryrefslogtreecommitdiff
path: root/scripts/toolchains
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2019-08-27 14:03:49 -0700
committerCurtis J Bezault <curtbezault@gmail.com>2019-08-27 14:03:49 -0700
commit32a53e1f3755960b09fc228dce23885aa7efcb8f (patch)
tree1d550e51549c9575102481c8b117a7b61e696791 /scripts/toolchains
parent0eb73051028d5ece1dd837171728fd62c82c1202 (diff)
downloadvcpkg-32a53e1f3755960b09fc228dce23885aa7efcb8f.tar.gz
vcpkg-32a53e1f3755960b09fc228dce23885aa7efcb8f.zip
[vcpkg] fix bug in StringView::operator== 😱 (#7930)
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.
Diffstat (limited to 'scripts/toolchains')
0 files changed, 0 insertions, 0 deletions