Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8e58a7d484e581dd195d7366ec0b4146899b4443
      
https://github.com/WebKit/WebKit/commit/8e58a7d484e581dd195d7366ec0b4146899b4443
  Author: Chris Dumez <[email protected]>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/cocoa/SystemBattery.mm

  Log Message:
  -----------
  Fix potential null deference under systemHasBattery()
https://bugs.webkit.org/show_bug.cgi?id=316162

Reviewed by Per Arne Vollan.

Per its documentation, IOPSGetPowerSourceDescription() can return null
in case of error. Yet, the code in systemHasBattery() was not properly
dealing with this. The other call site in the same file was already
null checking.

* Source/WebCore/platform/cocoa/SystemBattery.mm:
(WebCore::systemHasBattery):

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



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

Reply via email to