Network Cache: Crash in WebCore::CachedResource::tryReplaceEncodedData
[WebKit-https.git] / Source / WebKit2 / ChangeLog
index d5d0ec0ba14f92ffa91698d1ac6be8813653523f..4ae7ef37492353fd0ba1e278ab316936b231894b 100644 (file)
@@ -1,3 +1,17 @@
+2015-04-09  Antti Koivisto  <antti@apple.com>
+
+        Network Cache: Crash in WebCore::CachedResource::tryReplaceEncodedData
+        https://bugs.webkit.org/show_bug.cgi?id=143562
+
+        Reviewed by Anders Carlsson.
+
+        If another thread comes and truncates the file before we map it we end up with a map that crashes when accessed.
+
+        * NetworkProcess/cache/NetworkCacheIOChannelCocoa.mm:
+        (WebKit::NetworkCache::IOChannel::IOChannel):
+
+            When creating a new file unlink any existing file instead of using O_TRUNC.
+
 2015-04-09  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         [EFL][GTK] WebKit2's generate-forwarding-headers.pl runs too many times