[all-commits] [llvm/llvm-project] a2e888: [LLDB][NFC]Fix stack-use-after free bug. (#134296)

Vy Nguyen via All-commits all-commits at lists.llvm.org
Fri Apr 4 05:01:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2e888f5b49113c66b055290cb7069ae88c9d2e1
      https://github.com/llvm/llvm-project/commit/a2e888f5b49113c66b055290cb7069ae88c9d2e1
  Author: Vy Nguyen <vyng at google.com>
  Date:   2025-04-04 (Fri, 04 Apr 2025)

  Changed paths:
    M lldb/source/Interpreter/CommandInterpreter.cpp

  Log Message:
  -----------
  [LLDB][NFC]Fix stack-use-after free bug. (#134296)

Details: detailed_command_telemetry (bool) and command_id (int) could
already be freed when the dispatcher's dtor runs. So we should just copy
them into the lambda since they are cheap.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list