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

QML - crash when javascript code is called on recently destroyed context

XMLWordPrintable

    • fc45fd6983e12c2701b445dae1f3d99988091eac (qtdeclarative)

      When javascript code is called on recently destroyed context, QmlContextWrapper::callingContext function returns null pointer.

      There's no sanity check in __qmljs_get_context_object and __qmljs_get_imported_scripts functions and null pointer gets dereferenced, which leads to crash.

      Both functions __qmljs_get_context_object and __qmljs_get_imported_scripts should return undefined in such case.

      This http://pastebin.com/7kVvV6kr fixes the problem.

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

            tsdgeos_canonical Albert Astals Cid (Canonical) (Inactive)
            edois Eduard Veleba
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes