summaryrefslogtreecommitdiff
path: root/absl/strings/str_split.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2020-10-02 10:17:27 -0700
committerGravatar Andy Getz <durandal@google.com>2020-10-02 22:03:20 -0400
commit887d0eee6bab35847253181b32e78ff707010ccd (patch)
treeacaa30bb0aee7dba9371367bb4833424178cd78f /absl/strings/str_split.cc
parentb978fc02f02ba79c545f99d0d65bd066fb8cebf8 (diff)
Export of internal Abseil changes
-- d6e582e21ceec768aa72e857c10ba80cad2f2202 by Abseil Team <absl-team@google.com>: adds bounds-checking for the second range in absl::c_mismatch The API for the two-range absl::c_mismatch is misleading as it doesn't check the bounds of the second range against the first one. This commit cleans up the internals of the overload to make sure that buggy calls are not exploitable; non-buggy calls are unaffected. This is consistent with both C++14's two-range std::mismatch and C++20's std::ranges::mismatch (see http://wg21.link/mismatch). PiperOrigin-RevId: 335050236 GitOrigin-RevId: d6e582e21ceec768aa72e857c10ba80cad2f2202 Change-Id: I77e0d030adf35c09069ceab5ea67efdf09377390
Diffstat (limited to 'absl/strings/str_split.cc')
0 files changed, 0 insertions, 0 deletions