[all-commits] [llvm/llvm-project] 9f471f: [libc++][hardening] Constrain construction for `__...

A. Jiang via All-commits all-commits at lists.llvm.org
Mon Nov 11 07:05:02 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f471fd12b9e2d6264f27974feaf893445e92393
      https://github.com/llvm/llvm-project/commit/9f471fd12b9e2d6264f27974feaf893445e92393
  Author: A. Jiang <de34 at live.cn>
  Date:   2024-11-11 (Mon, 11 Nov 2024)

  Changed paths:
    M libcxx/include/__iterator/bounded_iter.h
    M libcxx/include/__iterator/static_bounded_iter.h
    M libcxx/include/__iterator/wrap_iter.h
    A libcxx/test/libcxx/iterators/contiguous_iterators.conv.compile.pass.cpp

  Log Message:
  -----------
  [libc++][hardening] Constrain construction for `__{(static_)bounded,wrap}_iter` (#115271)

This PR restricts construction to cases where reference types of
source/destination iterators are (`T&`, `T&`) or (`T&`, `const T&`) (
where `T` can be const).

Fixes #50058.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list