← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 1215338] [NEW] for-loop iteration may cause crash

 

Public bug reported:

SearchFrame.cpp, method void SearchFrame::addResult(SearchResultPtr
psr), when you iterate through searchResults (for(auto& si2:
searchResults) {), emplace_back on searchResults invalidates auto& si2,
so                             si2.srs.push_back(psr); may cause crash

** Affects: dcplusplus
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
https://bugs.launchpad.net/bugs/1215338

Title:
  for-loop iteration may cause crash

Status in DC++:
  New

Bug description:
  SearchFrame.cpp, method void SearchFrame::addResult(SearchResultPtr
  psr), when you iterate through searchResults (for(auto& si2:
  searchResults) {), emplace_back on searchResults invalidates auto&
  si2, so                             si2.srs.push_back(psr); may cause
  crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/dcplusplus/+bug/1215338/+subscriptions


Follow ups

References