]> git.ipfire.org Git - thirdparty/gcc.git/commit
vector.tcc (_M_insert_aux, [...]): Check at the outset that we are not trying to...
authorPaolo Carlini <pcarlini@suse.de>
Thu, 21 Oct 2004 14:53:02 +0000 (14:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 21 Oct 2004 14:53:02 +0000 (14:53 +0000)
commit996e539545fa047c2df21645768d40cb67f50acf
tree29f654e743ccdc49ae3d5ac87f9a553d8351ef6e
parentd600a3a435e1a8556480916886e895cbc5ead8dd
vector.tcc (_M_insert_aux, [...]): Check at the outset that we are not trying to exceed max_size...

2004-10-21  Paolo Carlini  <pcarlini@suse.de>
    Dhruv Matani  <dhruvbird@gmx.net>
    Nathan Myers  <ncm@cantrip.org>

* include/bits/vector.tcc (_M_insert_aux, _M_fill_insert,
_M_range_insert): Check at the outset that we are not trying
to exceed max_size, then deal properly with __len overflows.
* testsuite/23_containers/vector/modifiers/insert/1.cc: New.

* testsuite/testsuite_allocator.h: Remove redundant include.

Co-Authored-By: Dhruv Matani <dhruvbird@gmx.net>
Co-Authored-By: Nathan Myers <ncm@cantrip.org>
From-SVN: r89377
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/vector.tcc
libstdc++-v3/testsuite/23_containers/vector/modifiers/insert/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_allocator.h