NEW 169603
Fix uninitialized public members in WebKit2/Platform and WebKit2/PluginProcess
https://bugs.webkit.org/show_bug.cgi?id=169603
Summary Fix uninitialized public members in WebKit2/Platform and WebKit2/PluginProcess
Tomas Popela
Reported 2017-03-14 07:28:00 PDT
Found by Coverity scan.
Attachments
Patch (22.41 KB, patch)
2017-03-14 07:29 PDT, Tomas Popela
no flags
Patch (2.98 KB, patch)
2017-03-15 00:13 PDT, Tomas Popela
mjs: review-
Tomas Popela
Comment 1 2017-03-14 07:29:16 PDT
WebKit Commit Bot
Comment 2 2017-03-14 07:31:22 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Michael Catanzaro
Comment 3 2017-03-14 08:10:50 PDT
Comment on attachment 304377 [details] Patch Please fix the ChangeLog.
Alexey Proskuryakov
Comment 4 2017-03-14 23:48:32 PDT
Comment on attachment 304377 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=304377&action=review > Source/WebKit2/NetworkProcess/NetworkProcessCreationParameters.h:52 > + bool privateBrowsingEnabled { false }; Can any of the creation parameters actually be uninitialized? Using default values seems as much of a problem as using uninitialised one - perhaps even worse, as UBSan won't catch that.
Tomas Popela
Comment 5 2017-03-15 00:13:52 PDT
Created attachment 304482 [details] Patch Correct the patch (after I previously had some problems with webkit-patch).
Michael Catanzaro
Comment 6 2017-03-15 08:30:22 PDT
(In reply to comment #4) > Can any of the creation parameters actually be uninitialized? Using default > values seems as much of a problem as using uninitialised one - perhaps even > worse, as UBSan won't catch that. Good point. Let's continue the discussion in bug #169598 as those changes should not have been present in this bug.
Michael Catanzaro
Comment 7 2017-03-22 11:57:15 PDT
Ping owners
Alexey Proskuryakov
Comment 8 2017-03-22 13:12:19 PDT
I'm still very much unsure if this is desirable, as it makes it harder to find uninitialized variable issues with UBSan.
Maciej Stachowiak
Comment 9 2020-05-30 19:11:04 PDT
Comment on attachment 304482 [details] Patch Seems like a good idea to initialize everything. Unfortunately this patch no longer applies.
Note You need to log in before you can comment on or make changes to this bug.