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

QDeclarativeStyledText::parse on empty tag causes assert in QString

    XMLWordPrintable

Details

    • I7141002b751722ab34b378215251562153c4ff46

    Description

      1. Run the attached .qml
      2. Enter into the bottom TextEdit:
        <b>Text<>


      Asserts at qtbase/src/corelib/tools/qstring.h:1144, presumably because the tag is of size 0 thus failing i < size()

      If the parseTag gets a string of length 0 it should be ignored.

      Attachments

        1. text_to_rich_or_styled.qml
          0.8 kB
          Damian Jansen (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bodson Yann Bodson (Inactive)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes