[webkit-changes] [WebKit/WebKit] 302c4c: Add null check in NetworkStateNotifier::updateStat...

Alex Christensen noreply at github.com
Wed Jul 12 15:32:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 302c4c541393a12749c9791968f8fbe6aa1f797e
      https://github.com/WebKit/WebKit/commit/302c4c541393a12749c9791968f8fbe6aa1f797e
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M Source/WebCore/platform/network/mac/NetworkStateNotifierMac.cpp

  Log Message:
  -----------
  Add null check in NetworkStateNotifier::updateStateWithoutNotifying
https://bugs.webkit.org/show_bug.cgi?id=259163
rdar://111926368

Reviewed by Brent Fulgham.

Crash logs indicate m_store can be null and it crashes when it is.
In NetworkStateNotifier::startObserving we early return if it's null.
This adds another early return.

* Source/WebCore/platform/network/mac/NetworkStateNotifierMac.cpp:
(WebCore::NetworkStateNotifier::updateStateWithoutNotifying):

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




More information about the webkit-changes mailing list