[libcxx-commits] [libcxx] [libc++][ranges][abi-break] Fix `movable_box` overwriting memory of data that lives in the tail padding (PR #71314)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 15 09:54:16 PST 2023


================
@@ -108,5 +108,22 @@ int main(int, char**) {
   }
 #endif
 
+  // GH issue #70506
----------------
ldionne wrote:

It looks like the following views have the same problem at a high level, because they use `__movable_box` as well:

```
take_while_view
filter_view
single_view
drop_while_view
repeat_view
transform_view
chunk_by_view
```

I think it would be worthwhile to add a regression test for each of them. Maybe a single test that checks all of them is the best approach.

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


More information about the libcxx-commits mailing list