[libcxx-commits] [libcxx] [libc++][hardening] Add a bounds check for `valarray` and `bitset`. (PR #120685)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 19 22:34:04 PST 2024


================
@@ -0,0 +1,42 @@
+//===----------------------------------------------------------------------===//
----------------
var-const wrote:

Note: I found it easier to just test all the assertions in a single file (we have precedent in `deque`). We could split by hardening mode later, but I think having a separate test file per hardened function is more trouble than it's worth. No strong feelings, though -- please feel free to push back on this.

https://github.com/llvm/llvm-project/pull/120685


More information about the libcxx-commits mailing list