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
bitset
deque
forward_list
headers
list Fix DR 438 std::list test to pass in C++98 mode 2016-07-31 20:21:59 +01:00
map
multimap
multiset
priority_queue
queue
set
stack
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
unordered_set
vector PR 72847 Prevent double-free in std::vector<bool> 2016-08-16 12:33:16 +01:00