[all-commits] [llvm/llvm-project] f0d87d: [lldb] Return the correct utility function in Appl...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Jun 22 13:57:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0d87dfe30e86d701034af9320b29d3e2e3a12b3
      https://github.com/llvm/llvm-project/commit/f0d87dfe30e86d701034af9320b29d3e2e3a12b3
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

  Log Message:
  -----------
  [lldb] Return the correct utility function in AppleObjCRuntimeV2

A copy/paste error in GetClassInfoUtilityFunction resulted in the wrong
utility function being returned: copyRealizedClassList instead of
getRealizedClassList_trylock.

Differential revision: https://reviews.llvm.org/D128378


  Commit: d95c406c20ef8135fae74cc82406f498084749a0
      https://github.com/llvm/llvm-project/commit/d95c406c20ef8135fae74cc82406f498084749a0
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

  Log Message:
  -----------
  [lldb] Fix off-by-one error in the AppleObjCRuntimeV2 utility function

Fix an off-by-one error in the utility function used to extract the
dynamic class info. This resulted in a buffer overflow in the inferior
which interrupted our utility function.

Differential revision: https://reviews.llvm.org/D128377


Compare: https://github.com/llvm/llvm-project/compare/e13248ab0e79...d95c406c20ef


More information about the All-commits mailing list