Commit b8c64e2
committed
[lLDB] Fix crash in TypeSystemClang::GetIndexofChildMemberWithName.
LLDB can crash in TypeSystemClang::GetIndexOfChildMemberWithName, at a
point where it pushes an index onto the child_indexes vector, tries to call
itself recursively, then tries to pop the entry from child_indexes.
The problem is that the recursive call can clear child_indexes, so that
this code ends up trying to pop an already empty vector. This change saves
the old vector before the push, then restores the saved vector rather than
trying to pop.1 parent 8458bbe commit b8c64e2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6754 | 6754 | | |
6755 | 6755 | | |
6756 | 6756 | | |
| 6757 | + | |
6757 | 6758 | | |
6758 | 6759 | | |
6759 | 6760 | | |
6760 | 6761 | | |
6761 | | - | |
6762 | | - | |
| 6762 | + | |
6763 | 6763 | | |
6764 | 6764 | | |
6765 | 6765 | | |
| |||
0 commit comments