Changeset 245308 in webkit
- Timestamp:
- May 14, 2019, 2:07:51 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
r245306 r245308 1 2019-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 1 30 2019-05-14 Alan Coon <alancoon@apple.com> 2 31 -
branches/safari-608.1.24-branch/Source/WebCore/platform/sql/SQLiteDatabase.cpp
r245232 r245308 152 152 String shmFileName = makeString(filename, "-shm"_s); 153 153 if (FileSystem::fileExists(shmFileName)) { 154 if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName)) 154 if (!FileSystem::isSafeToUseMemoryMapForPath(shmFileName)) { 155 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 156 FileSystem::makeSafeToUseMemoryMapForPath(shmFileName); 157 } 157 158 } 158 159
Note:
See TracChangeset
for help on using the changeset viewer.