Changeset 244997 in webkit
- Timestamp:
- May 6, 2019 5:42:44 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r244993 r244997 1 2019-05-06 Chris Dumez <cdumez@apple.com> 2 3 ASSERT at WebKit::NetworkCache::makeSafeToUseMemoryMapForPath under Storage::StoreBodyAsBlob when running WebDriver tests 4 https://bugs.webkit.org/show_bug.cgi?id=197635 5 <rdar://problem/50473149> 6 7 Reviewed by Geoffrey Garen. 8 9 We need to make sure the the path at blobPathString exists before calling FileSystem::makeSafeToUseMemoryMapForPath(). 10 If the blob does not already exist when BlobStorage::add() is called, what will create it is the call to Data::mapToFile(). 11 12 * NetworkProcess/cache/NetworkCacheBlobStorage.cpp: 13 (WebKit::NetworkCache::BlobStorage::add): 14 1 15 2019-05-06 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebKit/NetworkProcess/cache/NetworkCacheBlobStorage.cpp
r244921 r244997 95 95 96 96 String blobPathString = blobPathForHash(hash); 97 FileSystem::makeSafeToUseMemoryMapForPath(blobPathString);98 97 99 98 auto blobPath = FileSystem::fileSystemRepresentation(blobPathString); … … 103 102 bool blobExists = access(blobPath.data(), F_OK) != -1; 104 103 if (blobExists) { 104 FileSystem::makeSafeToUseMemoryMapForPath(blobPathString); 105 105 auto existingData = mapFile(blobPath.data()); 106 106 if (bytesEqual(existingData, data)) { … … 115 115 if (mappedData.isNull()) 116 116 return { }; 117 118 FileSystem::makeSafeToUseMemoryMapForPath(blobPathString); 117 119 118 120 if (link(blobPath.data(), linkPath.data()) == -1)
Note: See TracChangeset
for help on using the changeset viewer.