[Lldb-commits] [PATCH] D101131: [lldb-vscode] Follow up of D99989 - store some strings more safely

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 26 15:28:19 PDT 2021


clayborg requested changes to this revision.
clayborg added inline comments.
This revision now requires changes to proceed.


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:2939
         break;
       variable_name_counts[variable.GetName()]++;
     }
----------------
This will crash if "variable.GetName()" return nullptr. We should check and only add if not nullptr


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101131



More information about the lldb-commits mailing list