gcc/libstdc++-v3/testsuite
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
..
17_intro Remove "-x c" from dg-options in libstdc++ C++ test 2016-08-01 13:18:23 +01:00
18_support Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
19_diagnostics Move dg-error directives to relevant lines 2016-08-02 20:34:25 +01:00
20_util Implement LWG 2744 and LWG 2754. 2016-08-15 18:06:09 +03:00
21_strings Implement LWG 2758. 2016-08-11 17:45:23 +03:00
22_locale Fix invalid dg-do directives in libstdc++ tests 2016-07-28 22:00:19 +01:00
23_containers PR 72847 Prevent double-free in std::vector<bool> 2016-08-16 12:33:16 +01:00
24_iterators Fix missing returns in libstdc++ testsuite 2016-07-21 20:38:44 +01:00
25_algorithms Make libstdc++ debug mode test valid for C++98 2016-08-01 13:18:13 +01:00
26_numerics Enable Mathematical Special Functions for C++17 2016-08-03 16:54:13 +01:00
27_io Run std::ios_base enum tests for C++11 and up 2016-08-01 13:17:43 +01:00
28_regex Remove unused headers and variables from libstdc++ tests 2016-08-01 13:18:08 +01:00
29_atomics Skip scan-assembler test when -flto is used 2016-08-02 11:02:25 +01:00
30_threads libstdc++/70766 use std::addressof instead of operator& 2016-04-28 13:33:07 +01:00
abi Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
backward Fix __gnu_cxx::hash_set test to pass in C++98 mode 2016-08-01 13:45:47 +01:00
config Update copyright years. 2016-01-04 15:30:50 +01:00
data
decimal Make use of extensions more explicit in libstdc++ tests 2016-04-18 16:44:25 +01:00
experimental Define std::owner_less<void> specialization (P0074R0) 2016-08-03 19:11:18 +01:00
ext Only run math special function tests for C++11 and later 2016-08-02 14:32:16 +01:00
lib * testsuite/lib/libstdc++.exp: Fix typo in comment. 2016-08-06 11:44:17 +01:00
libstdc++-abi Update copyright years. 2016-01-04 15:30:50 +01:00
libstdc++-dg Implement TR29124 C++ special Math Functions. 2016-01-14 18:12:43 +00:00
libstdc++-prettyprinters Ensure stdout is newline terminated for status wrappers. 2016-02-09 20:18:10 +00:00
libstdc++-xmethods Update copyright years. 2016-01-04 15:30:50 +01:00
performance c++config (_GLIBCXX14_USE_CONSTEXPR): New. 2016-05-24 20:55:57 +00:00
special_functions Only run math special function tests for C++11 and later 2016-08-02 14:32:16 +01:00
tr1 Test TR1 special functions without adding them to std 2016-08-02 14:32:21 +01:00
tr2 Update copyright years. 2016-01-04 15:30:50 +01:00
util New libstdc++ symbol version for new basic_string symbols 2016-07-29 11:42:17 +01:00
Makefile.am Update copyright years. 2016-01-04 15:30:50 +01:00
Makefile.in