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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.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 and applied senorblanco+haraken feedbac Created 5 years, 2 months 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
Index: third_party/WebKit/Source/modules/fetch/Body.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index 8170144816e622f3497c6149625fd4ecb6905616..f41d700d4117fec93b39703ea6a03a9c4b933191 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -124,7 +124,7 @@ ScriptPromise Body::arrayBuffer(ScriptState* scriptState)
if (bodyBuffer()) {
bodyBuffer()->startLoading(scriptState->executionContext(), FetchDataLoader::createLoaderAsArrayBuffer(), new BodyArrayBufferConsumer(resolver));
} else {
- resolver->resolve(DOMArrayBuffer::create(0u, 1));
+ resolver->resolve(DOMArrayBuffer::deprecatedCreateOrCrash(0u, 1));
haraken 2015/10/29 18:58:37 0u => nullptr
}
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698