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

Unified Diff: third_party/WebKit/Source/core/dom/DOMTypedArray.cpp

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: applied review comments 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/core/dom/DOMTypedArray.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp b/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
index 676fe8d9d89510950de0e007051977ec41759432..3e699ad86e99baf9e195e9832dcd76cc61e561b1 100644
--- a/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMTypedArray.cpp
@@ -30,7 +30,7 @@ v8::Local<v8::Object> DOMTypedArray<WTFTypedArray, V8TypedArray>::wrap(v8::Isola
ASSERT(!DOMDataStore::containsWrapper(this, isolate));
const WrapperTypeInfo* wrapperTypeInfo = this->wrapperTypeInfo();
- RefPtr<DOMArrayBufferBase> buffer = this->bufferBase();
+ RefPtr<DOMArrayBufferBase> buffer = this->bufferBaseOrNull();
v8::Local<v8::Value> v8Buffer = toV8(buffer.get(), creationContext, isolate);
if (v8Buffer.IsEmpty())
return v8::Local<v8::Object>();

Powered by Google App Engine
This is Rietveld 408576698