diff options
author | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2020-10-09 14:48:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 14:48:25 -0400 |
commit | 69947927f98a6d2972391ce61410d5aa3701bb9f (patch) | |
tree | c579915d01d792741e35ac0f24c7d04b5c9561c4 /absl/copts | |
parent | aa844899c937bde5d2b24f276b59997e5b668bde (diff) |
Adds bounds-checking to the second range of absl container algorithms (#812)20190808.1
The APIs for the two-range `absl::c_mismatch`, `absl::c_swap_ranges`,
and `absl::c_transform` are misleading as they do not check the bounds
of the second range against the first one.
This commit cleans up ensures that buggy calls are not exploitable;
non-buggy calls are unaffected.
This is consistent with both C++14's two-range `std::` equivalents and
C++20's `std::ranges::` equivalents.
http://wg21.link/mismatch
http://wg21.link/alg.swap
http://wg21.link/alg.transform
Diffstat (limited to 'absl/copts')
0 files changed, 0 insertions, 0 deletions