WebKit Bugzilla
Attachment 340429 Details for
Bug 185611
: [GTK][WPE]: Avoid using uninitialized launchOptions in getLaunchOptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[GTK][WPE]: Avoid using uninitialized launchOptions in getLaunchOptions
GTKWPE-Avoid-using-uninitialized-launchOptions-in-.patch (text/plain), 2.67 KB, created by
Thibault Saunier
on 2018-05-15 13:22:47 PDT
(
hide
)
Description:
[GTK][WPE]: Avoid using uninitialized launchOptions in getLaunchOptions
Filename:
MIME Type:
Creator:
Thibault Saunier
Created:
2018-05-15 13:22:47 PDT
Size:
2.67 KB
patch
obsolete
>From 59c010c77f2446258e18b87ee30279e5d91dfc9f Mon Sep 17 00:00:00 2001 >From: Thibault Saunier <tsaunier@igalia.com> >Date: Mon, 14 May 2018 10:18:02 -0400 >Subject: [PATCH xserver] [GTK][WPE]: Avoid using uninitialized launchOptions > in getLaunchOptions > >Otherwise we might get segfault > >https://bugs.webkit.org/show_bug.cgi?id=185611 >--- > Source/WebKit/ChangeLog | 16 ++++++++++++++++ > Source/WebKit/UIProcess/ChildProcessProxy.cpp | 3 +++ > .../UIProcess/Plugins/PluginProcessProxy.cpp | 2 +- > 3 files changed, 20 insertions(+), 1 deletion(-) > >diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index 03d53386e60..a381196f910 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,19 @@ >+2018-05-14 Thibault Saunier <tsaunier@igalia.com> >+ >+ [GTK][WPE]: Avoid using uninitialized launchOptions in getLaunchOptions >+ https://bugs.webkit.org/show_bug.cgi?id=185611 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Otherwise we might segfault. >+ >+ Also be more resilient to random values passed in asserting appropriately. >+ >+ https://bugs.webkit.org/show_bug.cgi?id=185611 >+ >+ * UIProcess/ChildProcessProxy.cpp: >+ (WebKit::ChildProcessProxy::getLaunchOptions): >+ > 2018-05-14 Zan Dobersek <zdobersek@igalia.com> > > [GTK] REGRESSION(r231170) Build broken with Clang 5.0 >diff --git a/Source/WebKit/UIProcess/ChildProcessProxy.cpp b/Source/WebKit/UIProcess/ChildProcessProxy.cpp >index 96511fdc04a..691c1709d4e 100644 >--- a/Source/WebKit/UIProcess/ChildProcessProxy.cpp >+++ b/Source/WebKit/UIProcess/ChildProcessProxy.cpp >@@ -75,6 +75,9 @@ void ChildProcessProxy::getLaunchOptions(ProcessLauncher::LaunchOptions& launchO > case ProcessLauncher::ProcessType::Storage: > varname = "STORAGE_PROCESS_CMD_PREFIX"; > break; >+ default: >+ ASSERT_NOT_REACHED(); >+ return; > } > const char* processCmdPrefix = getenv(varname); > if (processCmdPrefix && *processCmdPrefix) >diff --git a/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp b/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp >index 4555daad3e1..08d2eb44b60 100644 >--- a/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp >+++ b/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp >@@ -91,8 +91,8 @@ PluginProcessProxy::~PluginProcessProxy() > > void PluginProcessProxy::getLaunchOptions(ProcessLauncher::LaunchOptions& launchOptions) > { >- ChildProcessProxy::getLaunchOptions(launchOptions); > platformGetLaunchOptions(launchOptions, m_pluginProcessAttributes); >+ ChildProcessProxy::getLaunchOptions(launchOptions); > } > > void PluginProcessProxy::processWillShutDown(IPC::Connection& connection) >-- >2.17.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
mcatanzaro
:
commit-queue-
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 185611
:
340313
|
340321
|
340429
|
340488
|
341270
|
341289
|
342812