https://bugs.kde.org/show_bug.cgi?id=518496
Christoph Cullmann <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Christoph Cullmann <[email protected]> --- auto sitl = l.begin(); auto sitr = r.begin(); while (sitl != l.end() || sitr != r.end()) { if (*sitl != *sitr) { break; } ++sitl; ++sitr; } int lStart = std::distance(l.begin(), sitl); int rStart = std::distance(r.begin(), sitr); auto eitl = l.rbegin(); auto eitr = r.rbegin(); int lcount = l.size(); int rcount = r.size(); while (eitl != l.rend() || eitr != r.rend()) { if (*eitl != *eitr) { break; } both loops potential de-ref iterators that are already at or behind rend as we do a || as condition. -- You are receiving this mail because: You are watching all bug changes.
