Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1876825e173cc445960445a11fa60d3286d70ab2
      
https://github.com/WebKit/WebKit/commit/1876825e173cc445960445a11fa60d3286d70ab2
  Author: kdwk <[email protected]>
  Date:   2025-12-09 (Tue, 09 Dec 2025)

  Changed paths:
    M Source/WebCore/PAL/pal/system/glib/SleepDisablerGLib.cpp

  Log Message:
  -----------
  [GLib] Crash in SleepDisablerGLib::acquireInhibitor() when g_get_prgname() 
returns NULL
https://bugs.webkit.org/show_bug.cgi?id=303623

Reviewed by Michael Catanzaro and Adrian Perez de Castro.

According to the GLib API documentation, g_get_prgname() can return NULL 
(https://docs.gtk.org/glib/func.get_prgname.html). In SleepDisablerGLib.cpp:95, 
the result of this function is passed directly into g_variant_new(), resulting 
in assert string != NULL to fail and crash the WebProcess. Instead, it can fall 
back to the executable path. If that also fails, return early.
* Source/WebCore/PAL/pal/system/glib/SleepDisablerGLib.cpp:
(PAL::SleepDisablerGLib::acquireInhibitor):

Canonical link: https://commits.webkit.org/304162@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to