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

Changeset 245308 in webkit


Ignore:
Timestamp:
May 14, 2019, 2:07:51 PM (7 years ago)
Author:
Alan Coon
Message:

Cherry-pick r245253. rdar://problem/50628434

Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
https://bugs.webkit.org/show_bug.cgi?id=197760

Reviewed by Jer Noble.

Only makeSafeToUseMemoryMapForPath() if needed. (Fixed missing brace.)

  • platform/sql/SQLiteDatabase.cpp: (WebCore::SQLiteDatabase::open):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245253 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-608.1.24-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1.24-branch/Source/WebCore/ChangeLog

    r245306 r245308  
     12019-05-14  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r245253. rdar://problem/50628434
     4
     5    Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
     6    https://bugs.webkit.org/show_bug.cgi?id=197760
     7   
     8    Reviewed by Jer Noble.
     9   
     10    Only makeSafeToUseMemoryMapForPath() if needed. (Fixed missing brace.)
     11   
     12    * platform/sql/SQLiteDatabase.cpp:
     13    (WebCore::SQLiteDatabase::open):
     14   
     15   
     16    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     17
     18    2019-05-13  Geoffrey Garen  <ggaren@apple.com>
     19
     20            Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files
     21            https://bugs.webkit.org/show_bug.cgi?id=197760
     22
     23            Reviewed by Jer Noble.
     24
     25            Only makeSafeToUseMemoryMapForPath() if needed. (Fixed missing brace.)
     26
     27            * platform/sql/SQLiteDatabase.cpp:
     28            (WebCore::SQLiteDatabase::open):
     29
    1302019-05-14  Alan Coon  <alancoon@apple.com>
    231
  • branches/safari-608.1.24-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp

    r245232 r245308  
    152152    String shmFileName = makeString(filename, "-shm"_s);
    153153    if (FileSystem::fileExists(shmFileName)) {
    154         if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName))
     154        if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName)) {
    155155            RELEASE_LOG_FAULT(SQLDatabase, "Opened an SQLite database with a Class A -shm file. This may trigger a crash when the user locks the device. (%s)", shmFileName.latin1().data());
    156156            FileSystem::makeSafeToUseMemoryMapForPath(shmFileName);
     157        }
    157158    }
    158159
Note: See TracChangeset for help on using the changeset viewer.