You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this is still a bug. The best fix is to add the missing iterator checks. Second best would to remove the iterator classes from the documented interface as they are a bug trap.
[In practice, I think they're practically only tested in the configuration used for Serialization's base64 support, which is very constrained compared to the documented promises of the iterator adaptors in Boost Serialization]
Filter_iterator doesn't check against the end iterator in its internal advance logic (this is a feature that
boost::iterator::filter_iterator
adds).The problem creates trouble whenever the input sequence ends in an element that doesn't satisfy the filter predicate:
Live with ASAN: https://compiler-explorer.com/z/xYaoqq7hs
The text was updated successfully, but these errors were encountered: