Using invalidated vector iterator is at best a UB and could crash depending on STL implementation.
Fixing via minimal changes to preserve the existing code style.
Coverity warning 1454828 (scan.coverity.com)
Paths
| Differential D130312
[LLDB][Reliability] Fix accessing invalid iterator ClosedPublic Authored by fixathon on Jul 21 2022, 3:12 PM.
Details Summary Using invalidated vector iterator is at best a UB and could crash depending on STL implementation. Coverity warning 1454828 (scan.coverity.com)
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 21 2022, 5:04 PM Closed by commit rG98186def3f1f: [LLDB][Reliability] Fix accessing invalid iterator (authored by fixathon). · Explain WhyJul 21 2022, 5:39 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 446668 lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
|