gcc/libstdc++-v3/testsuite/util
Jonathan Wakely 046a84762b PR libstdc++/80893 Fix null dereference in vector<bool>
PR libstdc++/80893
	* include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
	null pointer dereference when size is zero.
	* testsuite/23_containers/vector/bool/80893.cc: New.
	* testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
	Add non-explicit constructor from nullptr.
	(PointerBase::derived() const): Add const-qualified overload.

From-SVN: r248734
2017-05-31 13:41:45 +01:00
..
common_type Update copyright years. 2017-01-01 13:07:43 +01:00
debug Update copyright years. 2017-01-01 13:07:43 +01:00
exception Update copyright years. 2017-01-01 13:07:43 +01:00
hash_fn Update copyright years. 2017-01-01 13:07:43 +01:00
io Update copyright years. 2017-01-01 13:07:43 +01:00
native_type Update copyright years. 2017-01-01 13:07:43 +01:00
performance Add missing <cassert> include to testcase 2017-01-06 17:51:24 +00:00
regression Update copyright years. 2017-01-01 13:07:43 +01:00
statistic Update copyright years. 2017-01-01 13:07:43 +01:00
thread Update copyright years. 2017-01-01 13:07:43 +01:00
replacement_memory_operators.h Update copyright years. 2017-01-01 13:07:43 +01:00
specfun_testcase.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_abi_check.cc Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_abi.cc PR libstdc++/67578 Implement non-trivial std::random_device::entropy 2017-05-23 17:11:57 +01:00
testsuite_abi.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_allocator.cc Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_allocator.h PR libstdc++/80893 Fix null dereference in vector<bool> 2017-05-31 13:41:45 +01:00
testsuite_api.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_character.cc Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_character.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_common_types.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_container_traits.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_containergen.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_containers.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_counter_type.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_error.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_fs.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_greedy_ops.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_hooks.cc Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_hooks.h Fix comments in libstdc++ header and test 2017-04-03 18:16:06 +01:00
testsuite_io.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_iterators.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_new_operators.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_performance.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_random.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_regex.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_rng.h Remove reundant const-qualification from cast targets 2017-04-27 16:17:05 +01:00
testsuite_rvalref.h Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_shared.cc Update copyright years. 2017-01-01 13:07:43 +01:00
testsuite_tr1.h Update copyright years. 2017-01-01 13:07:43 +01:00