⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 264307 in webkit


Ignore:
Timestamp:
Jul 13, 2020, 12:00:09 PM (6 years ago)
Author:
Brent Fulgham
Message:

REGRESSION (r262538): Nullptr Deref in WTF::Detail::CallableWrapper<WebKit::WebResourceLoadStatisticsStore::performDailyTasks()::$_66, void>::call
​https://bugs.webkit.org/show_bug.cgi?id=214264
<rdar://problem/65093949>

Reviewed by Darin Adler.

A new type check was added outside of the protecting nullptr check. This introduced
a new nullptr dereference bug.

  • NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:

(WebKit::WebResourceLoadStatisticsStore::performDailyTasks):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r264306 r264307  
     12020-07-13  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION (r262538): Nullptr Deref in WTF::Detail::CallableWrapper<WebKit::WebResourceLoadStatisticsStore::performDailyTasks()::$_66, void>::call
     4        https://bugs.webkit.org/show_bug.cgi?id=214264
     5        <rdar://problem/65093949>
     6
     7        Reviewed by Darin Adler.
     8
     9        A new type check was added outside of the protecting nullptr check. This introduced
     10        a new nullptr dereference bug.
     11
     12        * NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:
     13        (WebKit::WebResourceLoadStatisticsStore::performDailyTasks):
     14
    1152020-07-13  Kate Cheney  <katherine_cheney@apple.com>
    216
  • trunk/Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp

    r263422 r264307  
    756756            m_statisticsStore->includeTodayAsOperatingDateIfNecessary();
    757757            m_statisticsStore->calculateAndSubmitTelemetry();
    758         }
    759         if (is<ResourceLoadStatisticsDatabaseStore>(*m_statisticsStore))
    760             downcast<ResourceLoadStatisticsDatabaseStore>(*m_statisticsStore).runIncrementalVacuumCommand();
     758            if (is<ResourceLoadStatisticsDatabaseStore>(*m_statisticsStore))
     759                downcast<ResourceLoadStatisticsDatabaseStore>(*m_statisticsStore).runIncrementalVacuumCommand();
     760        }
    761761    });
    762762}
Note: See TracChangeset for help on using the changeset viewer.