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

QtPrivate::QPropertyBindingData::d() read access violation (use after free)

    XMLWordPrintable

Details

    • Windows

    Description

      The bug happens when trying to use Q_OBJECT_BINDABLE_PROPERTY.

      It finally goes down to function QtPrivate::QPropertyBindingData::d(). At the time of function quintptr d() const

      { return d_ref(); }

      trying to return, application crashes because of read access violation at (usually) 0x[all Fs]. The reason is believed to be a dangling pointer.

      Using MSVC 100% reproduces the bug. MinGW seems fine so far (maybe just luck).

      Use the attached sample to reproduce the issue.

      Attachments

        1. qt_test_q_object_bindable_property_with_bindable.zip
          5 kB
          Robert Schimkowitsch
        2. qt_test_q_object_bindable_property.zip
          9 kB
          Luqiao Chen
        3. qtbug-110877-updated.zip
          6 kB
          Ivan Solovev

        Activity

          People

            fabiankosmale Fabian Kosmale
            luqiaochen Luqiao Chen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: