[all-commits] [llvm/llvm-project] ac1d56: [libc++][hardening] Add a bounds check for `valarr...

Konstantin Varlamov via All-commits all-commits at lists.llvm.org
Tue Dec 24 18:22:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac1d560709d2ecfe83a98285d4a13afae6db4316
      https://github.com/llvm/llvm-project/commit/ac1d560709d2ecfe83a98285d4a13afae6db4316
  Author: Konstantin Varlamov <varconsteq at gmail.com>
  Date:   2024-12-24 (Tue, 24 Dec 2024)

  Changed paths:
    M libcxx/docs/Hardening.rst
    M libcxx/include/bitset
    M libcxx/include/valarray
    A libcxx/test/libcxx/numerics/numarray/assert.pass.cpp
    A libcxx/test/libcxx/utilities/template.bitset/assert.pass.cpp
    M libcxx/test/std/utilities/template.bitset/bitset.members/op_and_eq.pass.cpp

  Log Message:
  -----------
  [libc++][hardening] Add a bounds check for `valarray` and `bitset`. (#120685)

Add a `valid-element-access` check to `valarray::operator[]` and
`bitset::operator[]`.



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