Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123645

CollectedComments data in AstComment is invalidated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.11
    • 6.7
    • QML: Tooling
    • None
    • 16875b289 (dev)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            semih.yavuz Semih Yavuz
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes