Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1255)

Unified Diff: third_party/WebKit/Source/wtf/ArrayBuffer.cpp

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/ArrayBufferBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ArrayBuffer.cpp
diff --git a/third_party/WebKit/Source/wtf/ArrayBuffer.cpp b/third_party/WebKit/Source/wtf/ArrayBuffer.cpp
index 21eafab9d65bc3465a270e27e2043dd9c6b16a67..807b68ca5d68403287182b54ef8edba158acf01a 100644
--- a/third_party/WebKit/Source/wtf/ArrayBuffer.cpp
+++ b/third_party/WebKit/Source/wtf/ArrayBuffer.cpp
@@ -50,7 +50,7 @@ bool ArrayBuffer::transfer(ArrayBufferContents& result)
if (allViewsAreNeuterable) {
m_contents.transfer(result);
} else {
- m_contents.copyTo(result);
+ m_contents.copyTo(result, ArrayBufferContents::NullDataIfOutOfMemory);
if (!result.data())
return false;
}
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayBuffer.h ('k') | third_party/WebKit/Source/wtf/ArrayBufferBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698