Skip to content

Commit 020a097

Browse files
committed
[libc++][ranges] fix an out-of-bounds access in 'ranges.shift_left.pass.cpp'
1 parent a68eb02 commit 020a097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.shift/ranges.shift_left.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ constexpr void test_iter_sent() {
6868
}
6969

7070
// (range) overload
71-
for (size_t n = 0; n <= 15; ++n) {
71+
for (size_t n = 0; n <= original.size(); ++n) {
7272
for (size_t k = 0; k <= n + 2; ++k) {
7373
auto begin = Iter(scratch.data());
7474
auto end = Sent(Iter(scratch.data() + n));

0 commit comments

Comments
 (0)