Title: [255860] trunk/Source/WebKit
- Revision
- 255860
- Author
- [email protected]
- Date
- 2020-02-05 14:37:59 -0800 (Wed, 05 Feb 2020)
Log Message
[IPC Hardening] Protect against targetId String being invalid in WebPageProxy::createInspectorTarget() / destroyInspectorTarget()
https://bugs.webkit.org/show_bug.cgi?id=207288
<rdar://problem/57645953>
Reviewed by Geoffrey Garen.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::createInspectorTarget):
(WebKit::WebPageProxy::destroyInspectorTarget):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (255859 => 255860)
--- trunk/Source/WebKit/ChangeLog 2020-02-05 22:13:56 UTC (rev 255859)
+++ trunk/Source/WebKit/ChangeLog 2020-02-05 22:37:59 UTC (rev 255860)
@@ -1,5 +1,17 @@
2020-02-05 Chris Dumez <[email protected]>
+ [IPC Hardening] Protect against targetId String being invalid in WebPageProxy::createInspectorTarget() / destroyInspectorTarget()
+ https://bugs.webkit.org/show_bug.cgi?id=207288
+ <rdar://problem/57645953>
+
+ Reviewed by Geoffrey Garen.
+
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::createInspectorTarget):
+ (WebKit::WebPageProxy::destroyInspectorTarget):
+
+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>
Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (255859 => 255860)
--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2020-02-05 22:13:56 UTC (rev 255859)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2020-02-05 22:37:59 UTC (rev 255860)
@@ -1683,11 +1683,13 @@
void WebPageProxy::createInspectorTarget(const String& targetId, Inspector::InspectorTargetType type)
{
+ MESSAGE_CHECK(m_process, !targetId.isEmpty());
m_inspectorController->createInspectorTarget(targetId, type);
}
void WebPageProxy::destroyInspectorTarget(const String& targetId)
{
+ MESSAGE_CHECK(m_process, !targetId.isEmpty());
m_inspectorController->destroyInspectorTarget(targetId);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes