Changeset 245232 in webkit
- Timestamp:
- May 12, 2019, 11:51:25 PM (7 years ago)
- Location:
- branches/safari-608.1.24-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/sql/SQLiteDatabase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1.24-branch/Source/WebCore/ChangeLog
r245230 r245232 1 2019-05-12 Babak Shafiei <bshafiei@apple.com> 2 3 Cherry-pick r245197. 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 We have all the data we need, and this crash is happening more than 11 expected. 12 13 * platform/sql/SQLiteDatabase.cpp: 14 (WebCore::SQLiteDatabase::open): 15 16 17 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245197 268f45cc-cd09-0410-ab3c-d52691b4dbfc 18 19 2019-05-09 Geoffrey Garen <ggaren@apple.com> 20 21 Downgrade RELEASE_ASSERT TO RELEASE_LOG_FAULT for SQLite Class A files 22 https://bugs.webkit.org/show_bug.cgi?id=197760 23 24 Reviewed by Jer Noble. 25 26 We have all the data we need, and this crash is happening more than 27 expected. 28 29 * platform/sql/SQLiteDatabase.cpp: 30 (WebCore::SQLiteDatabase::open): 31 1 32 2019-05-12 Babak Shafiei <bshafiei@apple.com> 2 33 -
branches/safari-608.1.24-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp
r244921 r245232 151 151 152 152 String shmFileName = makeString(filename, "-shm"_s); 153 if (FileSystem::fileExists(shmFileName)) 154 RELEASE_ASSERT(FileSystem::isSafeToUseMemoryMapForPath(shmFileName)); 153 if (FileSystem::fileExists(shmFileName)) { 154 if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName)) 155 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()); 156 FileSystem::makeSafeToUseMemoryMapForPath(shmFileName); 157 } 155 158 156 159 return isOpen();
Note:
See TracChangeset
for help on using the changeset viewer.