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

Unified Diff: third_party/WebKit/Source/modules/crypto/CryptoKey.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/CryptoKey.cpp
diff --git a/third_party/WebKit/Source/modules/crypto/CryptoKey.cpp b/third_party/WebKit/Source/modules/crypto/CryptoKey.cpp
index 3b04d471b83cc846167f402e34b2742a42a2bd50..bd558acd53d3bcd4e8dd09f9c48adfa9f3fda686 100644
--- a/third_party/WebKit/Source/modules/crypto/CryptoKey.cpp
+++ b/third_party/WebKit/Source/modules/crypto/CryptoKey.cpp
@@ -127,7 +127,7 @@ public:
virtual void setUint8Array(const char* propertyName, const WebVector<unsigned char>& vector)
{
- m_builder.add(propertyName, DOMUint8Array::create(vector.data(), vector.size()));
+ m_builder.add(propertyName, DOMUint8Array::deprecatedCreateOrCrash(vector.data(), vector.size()));
}
private:

Powered by Google App Engine
This is Rietveld 408576698