Summary: | [WPE][GTK] BubblewrapLauncher fails when prgname is long | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> | ||||
Component: | WebKitGTK | Assignee: | Patrick Griffis <pgriffis> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bugs-noreply, commit-queue, mcatanzaro, pgriffis | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Attachments: |
|
Description
Michael Catanzaro
2019-09-18 14:49:51 PDT
*** Bug 201979 has been marked as a duplicate of this bug. *** Created attachment 379123 [details]
Patch
Comment on attachment 379123 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379123&action=review > Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:138 > - GUniquePtr<char> appRunDir(g_build_filename(g_get_user_runtime_dir(), g_get_prgname(), nullptr)); > + GUniquePtr<char> appRunDir(g_build_filename(g_get_user_runtime_dir(), BASE_DIRECTORY, nullptr)); Even better would be to print a warning with WTFLogAlways if strlen(appRunDir.get()) exceeds sizeof(((struct sockaddr_un*) nullptr)->sun_path) - 1. Assuming my math isn't off. Comment on attachment 379123 [details] Patch Clearing flags on attachment: 379123 Committed r250231: <https://trac.webkit.org/changeset/250231> All reviewed patches have been landed. Closing bug. |