Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 11.0.1
-
None
-
-
66a6cceaf (11.0)
Description
Qt Creator can crash (0xC0000005) when pressing Alt+Enter on a class name
ast was nullptr
Stacktrace:
CppEditor.dll!CppEditor::CppRefactoringFile::startOf(const CPlusPlus::AST * ast) Zeile 159 C++
CppEditor.dll!CppEditor::CppRefactoringFile::isCursorOn(const CPlusPlus::AST * ast) Zeile 130 C++
CppEditor.dll!CppEditor::Internal::CppQuickFixInterface::isCursorOn(const CPlusPlus::AST * ast) Zeile 102 C++
CppEditor.dll!CppEditor::Internal::AddDeclarationForUndeclaredIdentifier::handleCall(const CPlusPlus::CallAST * call, const CppEditor::Internal::CppQuickFixInterface & interface, QList<QSharedPointer<TextEditor::QuickFixOperation>> & result) Zeile 3116 C++
CppEditor.dll!CppEditor::Internal::AddDeclarationForUndeclaredIdentifier::collectOperations(const CppEditor::Internal::CppQuickFixInterface & interface, QList<QSharedPointer<TextEditor::QuickFixOperation>> & result) Zeile 3030 C++
[Inlineframe] CppEditor.dll!std::_Func_class<void,Utils::Link const &>::operator()(const Utils::Link &) Zeile 869 C++
CppEditor.dll!CppEditor::FollowSymbolUnderCursor::findLink(const CppEditor::CursorInEditor & data, const std::function<void __cdecl(Utils::Link const &)> & processLinkCallback, bool resolveTarget, const CPlusPlus::Snapshot & theSnapshot, const QSharedPointer<CPlusPlus::Document> & documentFromSemanticInfo, CppEditor::SymbolFinder * symbolFinder, bool inNextSplit) Zeile 775 C++
CppEditor.dll!CppEditor::Internal::BuiltinModelManagerSupport::followSymbol(const CppEditor::CursorInEditor & data, const std::function<void __cdecl(Utils::Link const &)> & processLinkCallback, bool resolveTarget, bool inNextSplit) Zeile 108 C++
CppEditor.dll!CppEditor::Internal::AddDeclarationForUndeclaredIdentifier::match(const CppEditor::Internal::CppQuickFixInterface & interface, QList<QSharedPointer<TextEditor::QuickFixOperation>> & result) Zeile 3019 C++
CppEditor.dll!CppEditor::Internal::quickFixOperations(const TextEditor::AssistInterface * interface) Zeile 155 C++
CppEditor.dll!CppEditor::quickFixOperations(const TextEditor::AssistInterface * interface) Zeile 317 C++
Attachments
For Gerrit Dashboard: QTCREATORBUG-29484 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
495725,2 | CppEditor: Fix possible null pointer access | 11.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |