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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.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/encryptedmedia/MediaKeyStatusMap.cpp
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp
index 1649d6d9e7ab8f90411a933a2d0fe293595d7ddf..942feb8b7ce67f59ee24b21bbd94f88adb76c14f 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.cpp
@@ -64,7 +64,7 @@ public:
private:
MapEntry(WebData keyId, const String& status)
- : m_keyId(DOMArrayBuffer::create(keyId.data(), keyId.size()))
+ : m_keyId(DOMArrayBuffer::deprecatedCreateOrCrash(keyId.data(), keyId.size()))
, m_status(status)
{
}

Powered by Google App Engine
This is Rietveld 408576698