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

QTriangulator: node pointer of SimpleToMonotone::Edge uninitialized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.15.1
    • 5.15
    • GUI: Painting
    • b7b17e719ea57f2d697bc0f61bffaa0fab910701 (qt/qtbase/dev) 1356f0c2c3c29cb5a5a676de23f3d582c140bc8c (qt/qtbase/5.15)

      Coverity warns about the Edge::node member not being initialized in the Edge instance created in QTriangulator<T>::SimpleToMonotone::createDiagonal.

      This is correct, and given that this data member is initialized elsewhere (ie in setupDataStructures), it seems safest to initialize it to nullptr right away.

      This is CID 11398

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

            vhilshei Volker Hilsheimer
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes