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

Unified Diff: third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.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
Index: third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
index 532a7633f160028a5f63c3db1a71e933c4591efb..cf4b6eed2b2a976db2a69d308925e9fed22d7506 100644
--- a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
+++ b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
@@ -328,7 +328,7 @@ bool getBigInteger(const Dictionary& raw, const char* propertyName, RefPtr<DOMUi
if (!array->byteLength()) {
// Empty BigIntegers represent 0 according to the spec
- array = DOMUint8Array::create(1);
+ array = DOMUint8Array::deprecatedCreateOrCrash(nullptr, 1);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698