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

QQmlApplicationEngine: use-after-free when loading a component

    XMLWordPrintable

Details

    Description

      QQmlApplicationEnginePrivate::_q_finishLoad deletes the just-loaded component at the end of the function. Unfortunately, the component is then used again inside QQmlComponentPrivate::typeDataReady:

          emit q->statusChanged(q->status());    <--- QQmlApplicationEngine deletes q
          emit q->progressChanged(progress);     <--- q is used
      

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            jfaust Josh Faust
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes