[patch] libstdc++/61086 - fix ubsan errors in std::vector
Paolo Carlini
paolo.carlini@oracle.com
Wed May 7 12:53:00 GMT 2014
Hi,
On 05/07/2014 02:33 PM, Jonathan Wakely wrote:
> Yes, I checked. deque::const_iterator, list::const_iterator,
> vector<bool>::const_iterator and the _Rb_tree_const_iterator types all
> have _M_const_cast but they do not dereference anything.
>
> It only really affected std::vector because that's the only one of our
> containers that correctly supports custom pointer types (when my fixes
> for PR57272 are ready I'll need to deal with the issue again and will
> be careful about dereferencing).
Excellent. Thanks again!
Paolo.
More information about the Libstdc++
mailing list