[WPE][Qt] Uninitialized racy ViewBackend
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 12:09:50 +0000 (12:09 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 12:09:50 +0000 (12:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196247

Patch by Philippe Normand <pnormand@igalia.com> on 2019-03-26
Reviewed by Carlos Garcia Campos.

* UIProcess/API/wpe/qt/WPEQtView.h: Initialize the backend pointer to nullptr.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243492 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.h

index b33c8c1..fe1a3b6 100644 (file)
@@ -1,3 +1,12 @@
+2019-03-26  Philippe Normand  <pnormand@igalia.com>
+
+        [WPE][Qt] Uninitialized racy ViewBackend
+        https://bugs.webkit.org/show_bug.cgi?id=196247
+
+        Reviewed by Carlos Garcia Campos.
+
+        * UIProcess/API/wpe/qt/WPEQtView.h: Initialize the backend pointer to nullptr.
+
 2019-03-26  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         Unreviewed. Fix typo in GLib geolocation API after r243285.
index 2c08e07..1af8e1c 100644 (file)
@@ -115,6 +115,6 @@ private:
     QString m_html;
     QUrl m_baseUrl;
     QSizeF m_size;
-    WPEQtViewBackend* m_backend;
+    WPEQtViewBackend* m_backend { nullptr };
     bool m_errorOccured { false };
 };