Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.7
-
None
-
16875b289 (dev)
Description
Dom crashes if you visit AstComments field of Qmlfile. The root cause is invalidated CommentedElement data of the AstComment class. When the visitor is visiting CommentedElement::iterateDirectSubpaths, the visited element's m_preComment and m_postComment are invalid if the current owner type is AstComments.
Workaround is to get the valid m_preComment and m_postComment from AstComment by explicit casting, see the fix for QTBUG-123547.
Investigate why CommentedElement is invalidated, when you revert the fix for QTBUG-123547.
Attachments
Issue Links
- duplicates
-
QTBUG-118613 dom: fix memory errors when visiting QmlFile::m_astComments
-
- Reported
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-123645 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
551340,7 | qmldom: workaround crash in visiting AstComments | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |