]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/58800 (std::nth_element segfaults on valid input)
authorChris Jefferson <chris@bubblescope.net>
Sun, 20 Oct 2013 09:07:36 +0000 (09:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 20 Oct 2013 09:07:36 +0000 (09:07 +0000)
commitf5b9d5e877cff9d344645362dc57980a6c747e2c
tree1f64adbbc0231874e5ddbb09a2b1cc67effe6cc5
parentfac129d88e25ff32e2cc532d3809ecc65b2d764a
re PR libstdc++/58800 (std::nth_element segfaults on valid input)

2013-10-20  Chris Jefferson  <chris@bubblescope.net>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/58800
* include/bits/stl_algo.h (__unguarded_partition_pivot): Change
__last - 2 to __last - 1.
* testsuite/25_algorithms/nth_element/58800.cc: New

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r203872
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/nth_element/58800.cc [new file with mode: 0644]