gcc/libstdc++-v3/testsuite/23_containers
Jonathan Wakely 32917686b0 PR 72847 Prevent double-free in std::vector<bool>
PR libstdc++/72847
	* include/bits/stl_bvector.h (_Bvector_base::_M_deallocate): Zero
	pointers to start and end of storage.
	* testsuite/23_containers/vector/bool/72847.cc: New test.
	* include/bits/vector.tcc (vector<bool>::_M_reallocate): Only update
	_M_finish after deallocating.
	(vector<bool>::_M_fill_insert): Likewise.
	(vector<bool>::_M_insert_range): Likewise.
	(vector<bool>::_M_insert_aux): Likewise.

From-SVN: r239497
2016-08-16 12:33:16 +01:00
..
array Add tests and docs for LWG 2212 support 2016-07-12 15:00:26 +01:00
bitset Update copyright years. 2016-01-04 15:30:50 +01:00
deque Fix DR 438 container tests to pass in C++98 mode 2016-07-28 22:00:45 +01:00
forward_list Move dg-error directives to relevant lines 2016-07-31 17:51:08 +01:00
headers Update copyright years. 2016-01-04 15:30:50 +01:00
list Fix DR 438 std::list test to pass in C++98 mode 2016-07-31 20:21:59 +01:00
map Update copyright years. 2016-01-04 15:30:50 +01:00
multimap Update copyright years. 2016-01-04 15:30:50 +01:00
multiset Update copyright years. 2016-01-04 15:30:50 +01:00
priority_queue Update copyright years. 2016-01-04 15:30:50 +01:00
queue Update copyright years. 2016-01-04 15:30:50 +01:00
set Move allocator in std::string and RB tree move constructors 2016-07-22 16:03:11 +01:00
stack Update copyright years. 2016-01-04 15:30:50 +01:00
unordered_map Remove ignored "xfail" from dg-do compile directives 2016-08-01 15:13:06 +01:00
unordered_multimap Remove ignored "xfail" from dg-do compile directives 2016-08-01 15:13:06 +01:00
unordered_multiset Update copyright years. 2016-01-04 15:30:50 +01:00
unordered_set re PR libstdc++/71181 (Reserving in unordered_map doesn't reserve enough) 2016-06-20 20:04:25 +00:00
vector PR 72847 Prevent double-free in std::vector<bool> 2016-08-16 12:33:16 +01:00