llvm-project/libcxx/test/std/containers/views
Louis Dionne b5abd50f06 [libc++] span: Guard against overflow in span::subspan
The calculation _Offset + _Count <= size() may overflow, so use
_Count <= size() - _Offset instead. Note that this is safe due to
the previous constraint that _Offset <= size().

Patch by Michael Schellenberger Costa.

Differential Revision: https://reviews.llvm.org/D71998
2020-02-12 16:21:46 +01:00
..
span.cons [libcxx][test] Fix span tests. 2020-01-08 00:28:15 -08:00
span.elem [libc++][P1872] span should have size_type, not index_type. 2019-11-14 09:07:05 -05:00
span.iterators [libc++][P1872] span should have size_type, not index_type. 2019-11-14 09:07:05 -05:00
span.objectrep [libcxx][test] Fix span tests. 2020-01-08 00:28:15 -08:00
span.obs [libc++][P1872] span should have size_type, not index_type. 2019-11-14 09:07:05 -05:00
span.sub [libc++] span: Guard against overflow in span::subspan 2020-02-12 16:21:46 +01:00
span.tuple [libcxx][test] Fix span tests. 2020-01-08 00:28:15 -08:00
types.pass.cpp [libc++][P1872] span should have size_type, not index_type. 2019-11-14 09:07:05 -05:00