With multipart/replaced (e.g. motion JPEG), m_bufferedDataForCache grows unbounded...
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jul 2015 18:04:38 +0000 (18:04 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jul 2015 18:04:38 +0000 (18:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146630
<rdar://problem/21677340>

Follow-up.

* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::didReceiveBuffer):

    Typo 1014 -> 1024

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

Source/WebKit2/ChangeLog
Source/WebKit2/NetworkProcess/NetworkResourceLoader.cpp

index cba5090..80b8e49 100644 (file)
@@ -1,3 +1,16 @@
+2015-07-06  Antti Koivisto  <antti@apple.com>
+
+        With multipart/replaced (e.g. motion JPEG), m_bufferedDataForCache grows unbounded in Networking process
+        https://bugs.webkit.org/show_bug.cgi?id=146630
+        <rdar://problem/21677340>
+
+        Follow-up.
+
+        * NetworkProcess/NetworkResourceLoader.cpp:
+        (WebKit::NetworkResourceLoader::didReceiveBuffer):
+
+            Typo 1014 -> 1024
+
 2015-07-06  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r185896.
index 203ae21..bb73bdb 100644 (file)
@@ -293,7 +293,7 @@ void NetworkResourceLoader::didReceiveBuffer(ResourceHandle* handle, PassRefPtr<
 
     if (m_bufferedDataForCache) {
         // Prevent memory growth in case of streaming data.
-        const size_t maximumCacheBufferSize = 10 * 1014 * 1024;
+        const size_t maximumCacheBufferSize = 10 * 1024 * 1024;
         if (m_bufferedDataForCache->size() + buffer->size() <= maximumCacheBufferSize)
             m_bufferedDataForCache->append(buffer.get());
         else