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

Dangling pointer within QmlSensor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.9.8, 5.12.5, 5.12.6, 5.13.2
    • Fix Version/s: None
    • Component/s: Sensors
    • Labels:
      None
    • Environment:
      macOS 10.15.1
      Qt 5.13.2
    • Platform/s:
      All

      Description

      There is a dangling pointer due to passing local variable ret to the QQmlListProperty<QmlSensorRange>( const_cast<QmlSensor*>(this), ret ) constructor in return statement within QmlSensor::availableDataRates() function here

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ulherman Ulf Hermann
              Reporter:
              kozmon Ömer Göktaş
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change