Title: [255855] trunk/Source/WebKit
- Revision
- 255855
- Author
- [email protected]
- Date
- 2020-02-05 14:03:38 -0800 (Wed, 05 Feb 2020)
Log Message
[IPC hardening] Protect against m_inspectorPage being null inWebInspectorProxy::attach()
https://bugs.webkit.org/show_bug.cgi?id=207289
<rdar://problem/58419789>
Reviewed by David Kilzer.
* UIProcess/Inspector/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::attach):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (255854 => 255855)
--- trunk/Source/WebKit/ChangeLog 2020-02-05 22:02:19 UTC (rev 255854)
+++ trunk/Source/WebKit/ChangeLog 2020-02-05 22:03:38 UTC (rev 255855)
@@ -1,5 +1,16 @@
2020-02-05 Chris Dumez <[email protected]>
+ [IPC hardening] Protect against m_inspectorPage being null inWebInspectorProxy::attach()
+ https://bugs.webkit.org/show_bug.cgi?id=207289
+ <rdar://problem/58419789>
+
+ Reviewed by David Kilzer.
+
+ * UIProcess/Inspector/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::attach):
+
+2020-02-05 Chris Dumez <[email protected]>
+
[IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::detach()
https://bugs.webkit.org/show_bug.cgi?id=207286
<rdar://problem/55422296>
Modified: trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp (255854 => 255855)
--- trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 22:02:19 UTC (rev 255854)
+++ trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 22:03:38 UTC (rev 255855)
@@ -275,7 +275,8 @@
void WebInspectorProxy::attach(AttachmentSide side)
{
- if (!m_inspectedPage || !canAttach())
+ ASSERT(m_inspectorPage);
+ if (!m_inspectedPage || !m_inspectorPage || !canAttach())
return;
m_isAttached = true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes