[Bug libstdc++/81173] [8 Regression] bootstrap-ubsan errors in stl_bvector.h

2017-06-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81173

Jonathan Wakely  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Jonathan Wakely  ---
Now fixed.

[Bug libstdc++/81173] [8 Regression] bootstrap-ubsan errors in stl_bvector.h

2017-06-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81173

--- Comment #2 from Jonathan Wakely  ---
Author: redi
Date: Thu Jun 22 14:16:38 2017
New Revision: 249554

URL: https://gcc.gnu.org/viewcvs?rev=249554=gcc=rev
Log:
PR libstdc++/81173 fix undefined memset with null pointer

PR libstdc++/81173
* include/bits/stl_bvector.h (vector::_M_initialize_value):
Do not pass null pointer to memset.

Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_bvector.h

[Bug libstdc++/81173] [8 Regression] bootstrap-ubsan errors in stl_bvector.h

2017-06-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81173

Jonathan Wakely  changed:

   What|Removed |Added

  Known to work||7.1.1
Summary|bootstrap-ubsan errors in   |[8 Regression]
   |stl_bvector.h   |bootstrap-ubsan errors in
   ||stl_bvector.h

--- Comment #1 from Jonathan Wakely  ---
Likely caused by r249235 which introduced the memset.