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

Invalid enum value in QTextHtmlParser::tableCellBorderStyle

    XMLWordPrintable

Details

    • 886268580561edabd24a1b6f47f4d74504d47c6f (qt/qtbase/dev)

    Description

      1. Build Qt configured with -sanitize undefined.
      2. Use that to build the attached project.
      3. Run the resulting program passing in the attached input file:
        ./report input.html
        

        You will see output like

        qtbase/include/QtGui/6.2.0/QtGui/private/../../../../../../../../src/qt-dev-base_svg-04.20/qtbase/src/gui/text/qtexthtmlparser_p.h:305:95: runtime error: load of value 4294967295, which is not a valid value for type 'const QTextFrameFormat::BorderStyle'
        SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior qtbase/include/QtGui/6.2.0/QtGui/private/../../../../../../../../src/qt-dev-base_svg-04.20/qtbase/src/gui/text/qtexthtmlparser_p.h:305:95 in
        

      Google's oss-fuzz found this as issue 31027. They will publish the details on May 18th, the latest.

      Attachments

        1. input.html
          0.0 kB
        2. main.cpp
          0.2 kB
        3. report.pro
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes