r263421 - in /branches/gcc-6-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Aug 8 15:40:00 GMT 2018


Author: redi
Date: Wed Aug  8 15:40:47 2018
New Revision: 263421

URL: https://gcc.gnu.org/viewcvs?rev=263421&root=gcc&view=rev
Log:
PR libstdc++/80893 Fix null dereference in vector<bool>

Backport from mainline
2017-06-17  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/80893
	* testsuite/23_containers/vector/bool/80893.cc: Add { target c++11 }.

Backport from mainline
2017-05-31  Jonathan Wakely  <jwakely@redhat.com>

	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.

Added:
    branches/gcc-6-branch/libstdc++-v3/testsuite/23_containers/vector/bool/80893.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_bvector.h
    branches/gcc-6-branch/libstdc++-v3/testsuite/util/testsuite_allocator.h



More information about the Libstdc++-cvs mailing list