[Lldb-commits] [PATCH] D156375: Fix lldb-vscode frame id integer overflow

jeffrey tan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 26 16:12:59 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGca849352936d: Fix lldb-vscode frame id integer overflow (authored by yinghuitan).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156375/new/

https://reviews.llvm.org/D156375

Files:
  lldb/tools/lldb-vscode/LLDBUtils.cpp


Index: lldb/tools/lldb-vscode/LLDBUtils.cpp
===================================================================
--- lldb/tools/lldb-vscode/LLDBUtils.cpp
+++ lldb/tools/lldb-vscode/LLDBUtils.cpp
@@ -79,8 +79,8 @@
 }
 
 int64_t MakeVSCodeFrameID(lldb::SBFrame &frame) {
-  return (int64_t)(frame.GetThread().GetIndexID() << THREAD_INDEX_SHIFT |
-                   frame.GetFrameID());
+  return ((int64_t)frame.GetThread().GetIndexID() << THREAD_INDEX_SHIFT) |
+         frame.GetFrameID();
 }
 
 } // namespace lldb_vscode


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156375.544549.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230726/00e2b241/attachment.bin>


More information about the lldb-commits mailing list