[all-commits] [llvm/llvm-project] 98186d: [LLDB][Reliability] Fix accessing invalid iterator

fixathon via All-commits all-commits at lists.llvm.org
Thu Jul 21 17:39:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98186def3f1f6f3862e6c91ca01dfd278ad1929e
      https://github.com/llvm/llvm-project/commit/98186def3f1f6f3862e6c91ca01dfd278ad1929e
  Author: Slava Gurevich <sgurevich at gmail.com>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp

  Log Message:
  -----------
  [LLDB][Reliability] Fix accessing invalid iterator

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)

Differential Revision: https://reviews.llvm.org/D130312




More information about the All-commits mailing list