forked from qt-creator/qt-creator
C++: Fix crash in template argument resolving
Occurs in boost/phoenix.hpp Task-number: QTCREATORBUG-14748 Change-Id: If89b0db48346aac72e0d8aaa8d165b2bf43bd784 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fff0a27103
commit
99dea548e0
2
src/libs/3rdparty/cplusplus/Scope.cpp
vendored
2
src/libs/3rdparty/cplusplus/Scope.cpp
vendored
@@ -214,7 +214,7 @@ unsigned SymbolTable::symbolCount() const
|
||||
|
||||
Symbol *SymbolTable::symbolAt(unsigned index) const
|
||||
{
|
||||
if (! _symbols)
|
||||
if (! _symbols || index >= symbolCount())
|
||||
return 0;
|
||||
return _symbols[index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user