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:
Orgad Shaneh
2015-08-02 19:59:13 +03:00
committed by Orgad Shaneh
parent fff0a27103
commit 99dea548e0
2 changed files with 4 additions and 3 deletions

View File

@@ -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];
}