[libcxx-commits] [libcxx] [libc++][hardening] Check bounds on arithmetic in __bounded_iter (PR #78876)
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 14 00:06:37 PST 2024
================
@@ -114,6 +117,8 @@ struct __bounded_iter {
// These operations do not check that the resulting iterator is within the bounds, since that
----------------
var-const wrote:
This comment looks slightly outdated -- we do check now, although we still allow an iterator that points to the past-the-end value.
https://github.com/llvm/llvm-project/pull/78876
More information about the libcxx-commits
mailing list