diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-05-31 13:41:45 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-05-31 13:41:45 +0100 |
commit | 046a84762b7954d43d14aa8b7e48bf07b8117270 (patch) | |
tree | 95490e31c659a8509105b5345bf60e3ac3c33a0a /gcc | |
parent | bde63fdea41c6c9952ab3607eb497d5c698e85c3 (diff) | |
download | gcc-046a84762b7954d43d14aa8b7e48bf07b8117270.zip gcc-046a84762b7954d43d14aa8b7e48bf07b8117270.tar.gz gcc-046a84762b7954d43d14aa8b7e48bf07b8117270.tar.bz2 |
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions