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

[REG] Division by 0 in QLineF::setLength()

    XMLWordPrintable

Details

    • 6974737695eae5a41bc8a3f344a4f1f199006f21 (qt/qtbase/dev) 28ba7ac1780b41924de267861826b01233618570 (qt/qtbase/6.0) 4cec3ecd2d52597311241d72c3f315bad89871f8 (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      Reproduce by:

      QLineF l(QPointF(0.5, 6e16), QPointF(0.5, 6e17));
      l.setLength(123);

      Produces warning if compiled with sanitize-undefined for the line 

      len /= v.length();

      in setLength(), as length() returns 0.

      Presumably related to https://codereview.qt-project.org/c/qt/qtbase/+/313237

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            vgt Eirik Aavitsland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes