Title: [255851] trunk/Source/WebKit
- Revision
- 255851
- Author
- [email protected]
- Date
- 2020-02-05 13:37:26 -0800 (Wed, 05 Feb 2020)
Log Message
[IPC Hardening] Protect against null String under WebInspectorProxy::save() / WebInspectorProxy::append()
https://bugs.webkit.org/show_bug.cgi?id=207284
<rdar://problem/55271616>
Reviewed by David Kilzer.
* UIProcess/Inspector/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::save):
(WebKit::WebInspectorProxy::append):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (255850 => 255851)
--- trunk/Source/WebKit/ChangeLog 2020-02-05 21:30:11 UTC (rev 255850)
+++ trunk/Source/WebKit/ChangeLog 2020-02-05 21:37:26 UTC (rev 255851)
@@ -1,5 +1,17 @@
2020-02-05 Chris Dumez <[email protected]>
+ [IPC Hardening] Protect against null String under WebInspectorProxy::save() / WebInspectorProxy::append()
+ https://bugs.webkit.org/show_bug.cgi?id=207284
+ <rdar://problem/55271616>
+
+ Reviewed by David Kilzer.
+
+ * UIProcess/Inspector/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::save):
+ (WebKit::WebInspectorProxy::append):
+
+2020-02-05 Chris Dumez <[email protected]>
+
[IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::setAttachedWindowHeight() / setAttachedWindowWidth()
https://bugs.webkit.org/show_bug.cgi?id=207287
<rdar://problem/55422919>
Modified: trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp (255850 => 255851)
--- trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 21:30:11 UTC (rev 255850)
+++ trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 21:37:26 UTC (rev 255851)
@@ -629,11 +629,19 @@
void WebInspectorProxy::save(const String& filename, const String& content, bool base64Encoded, bool forceSaveAs)
{
+ ASSERT(!filename.isEmpty());
+ if (filename.isEmpty())
+ return;
+
platformSave(filename, content, base64Encoded, forceSaveAs);
}
void WebInspectorProxy::append(const String& filename, const String& content)
{
+ ASSERT(!filename.isEmpty());
+ if (filename.isEmpty())
+ return;
+
platformAppend(filename, content);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes