Add missing boundary checks to variable completion.
authorRaphael Isemann <teemperor@gmail.com>
Fri, 27 Jul 2018 23:37:08 +0000 (23:37 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 27 Jul 2018 23:37:08 +0000 (23:37 +0000)
commitd4ff5ba926071650069f1cd04800c9e80ad772b3
tree1e8d73dd6187c368d252345e6d5482212d802f94
parenta90d24da1c886a9c00ff132a13e798cce4f1a739
Add missing boundary checks to variable completion.

Summary: Stopgap patch to at least stop all the crashes I get from this code.

Subscribers: lldb-commits

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

llvm-svn: 338177
lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
lldb/packages/Python/lldbsuite/test/functionalities/completion/main.cpp
lldb/source/Symbol/Variable.cpp