[Webkit-unassigned] [Bug 225279] [GTK] segmentation fault in WebKit::IconDatabase::loadIconForPageURL
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 4 00:20:44 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225279
--- Comment #5 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Comment on attachment 427529
--> https://bugs.webkit.org/attachment.cgi?id=427529
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=427529&action=review
> Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:586
> + if (nativeImage != nullptr)
Do not compare to nullptr. We normally prefer the early return first and avoid the else, so this would be:
if (!nativeImage) {
completionHandler(nullptr);
return;
}
addResult.iterator->value.first = nativeImage->platformImage();
> Source/WebKit/UIProcess/API/glib/IconDatabase.cpp:626
> + auto nativeImage = image->nativeImageForCurrentFrame();
> + if (nativeImage != nullptr)
And here this could be
if (auto nativeImage = image->nativeImageForCurrentFrame())
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210504/0126894e/attachment.htm>
More information about the webkit-unassigned
mailing list