Opened 6 years ago
Last modified 6 years ago
#12872 new Bugs
icl calls set::insert with invalid iterator hint
Reported by: | Owned by: | Joachim Faulhaber | |
---|---|---|---|
Milestone: | To Be Determined | Component: | ICL |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | Cc: |
Description
When using split_interval_set<T> the code in the add_segment function in interval_base_set.hpp tries to get the prior of an iterator that may be the first iterator of the underlying set container. This is then used as an insertion hint which causes a segfault in some standard container libraries (for example, the standard library on macOS).
All other parts of the file use cyclic_prior for this purpose.
Attachments (1)
Change History (2)
by , 6 years ago
Attachment: | icl_test.cpp added |
---|
Note:
See TracTickets
for help on using tickets.
Test case to reproduce problem